summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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 9bffe3d5779..4c0cbfd3cd1 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)