s4:pytevent.c - fix a discard const warning
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Wed, 10 Nov 2010 15:21:41 +0000 (16:21 +0100)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Thu, 11 Nov 2010 09:47:54 +0000 (09:47 +0000)
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Thu Nov 11 09:47:55 UTC 2010 on sn-devel-104

lib/tevent/pytevent.c

index 5999802346b92c9ca80252da9551c1de01606ebb..22541bb624f58c3ed37836204e52386fa5a2ea2c 100644 (file)
@@ -629,7 +629,7 @@ static void py_tevent_context_dealloc(TeventContext_Object *self)
 
 static PyObject *py_tevent_context_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
 {
-       const char *kwnames[] = { "name", NULL };
+       const char * const kwnames[] = { "name", NULL };
        char *name = NULL;
        struct tevent_context *ev;
        TeventContext_Object *ret;