1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2025-08-01 00:21:59 +03:00

libvirt-override: fix PyArg_ParseTuple for unsigned long long

Format string uses 'L' for long long type and 'K' for unsigned long long
type.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1260356

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Pavel Hrdina
2016-02-23 13:45:36 +01:00
parent fccf112c57
commit bc4c7477f0

View File

@ -7552,7 +7552,7 @@ libvirt_virDomainBlockPeek(PyObject *self ATTRIBUTE_UNUSED,
char *buf;
unsigned int flags;
if (!PyArg_ParseTuple(args, (char *)"OzLnI:virDomainBlockPeek",
if (!PyArg_ParseTuple(args, (char *)"OzKnI: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 *)"OLnI:virDomainMemoryPeek",
if (!PyArg_ParseTuple(args, (char *)"OKnI:virDomainMemoryPeek",
&pyobj_domain, &start, &size, &flags))
return NULL;