From: Michael Adam Date: Fri, 27 Jun 2008 07:12:57 +0000 (+0200) Subject: pynbt: eliminate "initialization from incompatible pointer type" warning X-Git-Tag: samba-4.0.0alpha5~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7ee17a10f330297dc4d9d15499276b3985c7a51;p=thirdparty%2Fsamba.git pynbt: eliminate "initialization from incompatible pointer type" warning by fixing the signature of py_nbt_node_init(). Jelmer - please check! Michael --- diff --git a/source/libcli/nbt/pynbt.c b/source/libcli/nbt/pynbt.c index 7978bfef904..e91096630a2 100644 --- a/source/libcli/nbt/pynbt.c +++ b/source/libcli/nbt/pynbt.c @@ -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);