Revert "lib/tevent: fix a compile warning"
authorChristian Ambach <ambi@samba.org>
Wed, 30 Dec 2015 20:33:23 +0000 (21:33 +0100)
committerChristian Ambach <ambi@samba.org>
Wed, 30 Dec 2015 20:33:50 +0000 (21:33 +0100)
This reverts commit c64086915897fd46d8f407635d8de108ff566abf.

lib/tevent/pytevent.c

index 60a0b376428908289e567d9a4f75233f8f77020c..10d8a22a8cff22c4f42463815c24cd6c6197d26f 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)
 {
-       char *kwnames[] = { "name", NULL };
+       const char * const kwnames[] = { "name", NULL };
        char *name = NULL;
        struct tevent_context *ev;
        TeventContext_Object *ret;