lib/tevent: fix a compile warning
authorChristian Ambach <ambi@samba.org>
Mon, 2 Mar 2015 21:43:03 +0000 (22:43 +0100)
committerChristian Ambach <ambi@samba.org>
Wed, 30 Dec 2015 20:25:31 +0000 (21:25 +0100)
warning: passing argument 4 of â€˜PyArg_ParseTupleAndKeywords’ from incompatible
pointer type [enabled by default]
  if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|s", kwnames, &name))

Signed-off-by: Christian Ambach <ambi@samba.org>
lib/tevent/pytevent.c

index 10d8a22a8cff22c4f42463815c24cd6c6197d26f..60a0b376428908289e567d9a4f75233f8f77020c 100644 (file)
@@ -738,7 +738,7 @@ static void py_tevent_context_dealloc(TeventContext_Object *self)
 
 static PyObject *py_tevent_context_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
 {
-       const char * const kwnames[] = { "name", NULL };
+       char *kwnames[] = { "name", NULL };
        char *name = NULL;
        struct tevent_context *ev;
        TeventContext_Object *ret;