pynbt: eliminate "initialization from incompatible pointer type" warning
authorMichael Adam <obnox@samba.org>
Fri, 27 Jun 2008 07:12:57 +0000 (09:12 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 27 Jun 2008 07:56:26 +0000 (09:56 +0200)
by fixing the signature of py_nbt_node_init().

Jelmer - please check!

Michael

source/libcli/nbt/pynbt.c

index 7978bfef904711a0a9a9edfada3b1a1f1d1225a6..e91096630a2f5e3ddbe7fe98f545c5bfaac1cdcd 100644 (file)
@@ -38,7 +38,7 @@ static void py_nbt_node_dealloc(PyObject *obj)
        PyObject_Del(obj);
 }
 
-static PyObject *py_nbt_node_init(PyObject *self, PyObject *args, PyObject *kwargs)
+static PyObject *py_nbt_node_init(PyTypeObject *self, PyObject *args, PyObject *kwargs)
 {
        struct event_context *ev;
        nbt_node_Object *ret = PyObject_New(nbt_node_Object, &nbt_node_Type);