summaryrefslogtreecommitdiff
path: root/lib/tevent
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-02-13 19:03:38 +0100
committerStefan Metzmacher <metze@samba.org>2009-02-16 09:53:49 +0100
commit406e6d61147e044bd07d5478fee58c9fa3618881 (patch)
tree952a60e8062554168e0f208748b4a4a963eb8d8f /lib/tevent
parent8e19a288052bca5efdb0277a40c1e0fdd099cc2b (diff)
downloadsamba-406e6d61147e044bd07d5478fee58c9fa3618881.tar.gz
samba-406e6d61147e044bd07d5478fee58c9fa3618881.tar.bz2
samba-406e6d61147e044bd07d5478fee58c9fa3618881.zip
tevent: fix compiler warning in pytevent.c
metze
Diffstat (limited to 'lib/tevent')
-rw-r--r--lib/tevent/pytevent.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/tevent/pytevent.c b/lib/tevent/pytevent.c
index 9bffe3d577..4c0cbfd3cd 100644
--- a/lib/tevent/pytevent.c
+++ b/lib/tevent/pytevent.c
@@ -77,7 +77,9 @@ static PyObject *py_event_ctx_new(PyTypeObject *type, PyObject *args, PyObject *
char *name = NULL;
struct tevent_context *ev_ctx;
PyTEventContextObject *ret;
- if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|s", (char **)kwnames, &name))
+ if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|s",
+ discard_const_p(char *, kwnames),
+ &name))
return NULL;
if (name == NULL)