diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2013-12-11 16:27:27 +0000 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2013-12-11 16:27:27 +0000 |
commit | faaf2a48354e3e28bd714625735b0e7b1c386e88 (patch) | |
tree | 63950950b4facddd0c44b526c1bd4e6bb2f7c39d | |
parent | d499f4a7c1624b80479f8f3c4ab4270a77655ee5 (diff) | |
download | libvirt-python-faaf2a48354e3e28bd714625735b0e7b1c386e88.tar.gz |
Fix return type in override method for virStreamRecv
The virStreamRecv override returns a PyObject not an int
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
-rw-r--r-- | libvirt-override.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libvirt-override.c b/libvirt-override.c index e4c54b7..83369fc 100644 --- a/libvirt-override.c +++ b/libvirt-override.c @@ -6883,6 +6883,7 @@ libvirt_virStreamRecv(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { PyObject *pyobj_stream; + PyObject *rv; virStreamPtr stream; char *buf = NULL; int ret; @@ -6909,9 +6910,9 @@ libvirt_virStreamRecv(PyObject *self ATTRIBUTE_UNUSED, return libvirt_intWrap(ret); if (ret < 0) return VIR_PY_NONE; - ret = libvirt_charPtrSizeWrap((char *) buf, (Py_ssize_t) ret); + rv = libvirt_charPtrSizeWrap((char *) buf, (Py_ssize_t) ret); VIR_FREE(buf); - return ret; + return rv; } static PyObject * |