summaryrefslogtreecommitdiff
path: root/libvirt-override.c
diff options
context:
space:
mode:
authorPavel Hrdina <phrdina@redhat.com>2016-02-23 13:46:45 +0100
committerPavel Hrdina <phrdina@redhat.com>2016-02-23 13:51:38 +0100
commit1bba3ca4e250c20b63515085f7be4b2c8ec5e237 (patch)
tree6660013ddac2b2bb287d3de1546b41e403a95f62 /libvirt-override.c
parentbc4c7477f02f3085bf2be47998b17fa6589823ab (diff)
downloadlibvirt-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.c4
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;