[python PATCH 4/4] libvirt-override: fix PyArg_ParseTuple for size_t

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 libvirt-override.c | 4 ++--
 1 file 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;
 
-- 
2.7.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]