]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
python: prefer unsigned flags
authorEric Blake <eblake@redhat.com>
Thu, 7 Jul 2011 18:13:45 +0000 (12:13 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 13 Jul 2011 23:05:10 +0000 (17:05 -0600)
* python/libvirt-override.c (libvirt_virConnectOpenAuth)
(libvirt_virDomainSnapshotListNames)
(libvirt_virDomainRevertToSnapshot): Change flags type.

python/libvirt-override.c

index 2b8879654dce290fcef5737dfd58479d8d2af87d..b713b6ad3ec67c8c165e7a96838392b5720511ff 100644 (file)
@@ -791,7 +791,7 @@ libvirt_virConnectOpenAuth(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
     PyObject *py_retval;
     virConnectPtr c_retval;
     char * name;
-    int flags;
+    unsigned int flags;
     PyObject *pyauth;
     PyObject *pycredcb;
     PyObject *pycredtype;
@@ -991,7 +991,7 @@ libvirt_virDomainSnapshotListNames(PyObject *self ATTRIBUTE_UNUSED,
     int c_retval, i;
     virDomainPtr dom;
     PyObject *pyobj_dom;
-    int flags;
+    unsigned int flags;
 
     if (!PyArg_ParseTuple(args, (char *)"Oi:virDomainSnapshotListNames", &pyobj_dom, &flags))
         return(NULL);
@@ -1035,7 +1035,7 @@ libvirt_virDomainRevertToSnapshot(PyObject *self ATTRIBUTE_UNUSED,
     virDomainSnapshotPtr snap;
     PyObject *pyobj_snap;
     PyObject *pyobj_dom;
-    int flags;
+    unsigned int flags;
 
     if (!PyArg_ParseTuple(args, (char *)"OOi:virDomainRevertToSnapshot", &pyobj_dom, &pyobj_snap, &flags))
         return(NULL);