diff options
author | Pavel Hrdina <phrdina@redhat.com> | 2016-02-23 13:46:45 +0100 |
---|---|---|
committer | Pavel Hrdina <phrdina@redhat.com> | 2016-02-23 13:51:38 +0100 |
commit | 1bba3ca4e250c20b63515085f7be4b2c8ec5e237 (patch) | |
tree | 6660013ddac2b2bb287d3de1546b41e403a95f62 /libvirt-override.c | |
parent | bc4c7477f02f3085bf2be47998b17fa6589823ab (diff) | |
download | libvirt-python-1bba3ca4e250c20b63515085f7be4b2c8ec5e237.tar.gz |
libvirt-override: fix PyArg_ParseTuple for size_tv1.3.2
Format string uses 'n' for Py_ssize_t but size_t is unsigned long, we
need to use 'k'.
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Diffstat (limited to 'libvirt-override.c')
-rw-r--r-- | libvirt-override.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libvirt-override.c b/libvirt-override.c index e99e8ff..2308802 100644 --- a/libvirt-override.c +++ b/libvirt-override.c @@ -7552,7 +7552,7 @@ libvirt_virDomainBlockPeek(PyObject *self ATTRIBUTE_UNUSED, char *buf; unsigned int flags; - if (!PyArg_ParseTuple(args, (char *)"OzKnI:virDomainBlockPeek", + if (!PyArg_ParseTuple(args, (char *)"OzKkI:virDomainBlockPeek", &pyobj_domain, &disk, &offset, &size, &flags)) return NULL; @@ -7590,7 +7590,7 @@ libvirt_virDomainMemoryPeek(PyObject *self ATTRIBUTE_UNUSED, char *buf; unsigned int flags; - if (!PyArg_ParseTuple(args, (char *)"OKnI:virDomainMemoryPeek", + if (!PyArg_ParseTuple(args, (char *)"OKkI:virDomainMemoryPeek", &pyobj_domain, &start, &size, &flags)) return NULL; |