summaryrefslogtreecommitdiffstats
path: root/libvir.c
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2007-03-06 21:55:44 +0000
committerDaniel P. Berrange <berrange@redhat.com>2007-03-06 21:55:44 +0000
commitf928d2b27fce6b225d7325702226f159c3014b66 (patch)
tree34661964e0fe7fc9a226bcfd9cf1102be1a4c5c2 /libvir.c
parentbffcc4f8a22e28b55b18ef434ba2d860e4d4389b (diff)
downloadlibvirt-python-v6-f928d2b27fce6b225d7325702226f159c3014b66.tar.gz
libvirt-python-v6-f928d2b27fce6b225d7325702226f159c3014b66.tar.xz
libvirt-python-v6-f928d2b27fce6b225d7325702226f159c3014b66.zip
Fixed up numerous compiler warnings
Diffstat (limited to 'libvir.c')
-rw-r--r--libvir.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libvir.c b/libvir.c
index 50a4424..d0e6ee7 100644
--- a/libvir.c
+++ b/libvir.c
@@ -15,7 +15,7 @@
#include "libvirt_wrap.h"
#include "libvirt-py.h"
-void initlibvirmod(void);
+extern void initlibvirtmod(void);
PyObject *libvirt_virDomainGetUUID(PyObject *self ATTRIBUTE_UNUSED, PyObject *args);
PyObject *libvirt_virGetLastError(PyObject *self ATTRIBUTE_UNUSED, PyObject *args);
@@ -266,7 +266,7 @@ libvirt_virConnectListDefinedDomains(PyObject *self ATTRIBUTE_UNUSED,
Py_INCREF(Py_None);
return (Py_None);
}
- c_retval = virConnectListDefinedDomains(conn, (const char **)names, c_retval);
+ c_retval = virConnectListDefinedDomains(conn, names, c_retval);
if (c_retval < 0) {
free(names);
Py_INCREF(Py_None);
@@ -375,7 +375,7 @@ libvirt_virDomainGetUUID(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
return(py_retval);
}
-PyObject *
+static PyObject *
libvirt_virDomainLookupByUUID(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
PyObject *py_retval;
virDomainPtr c_retval;