From 406e6d61147e044bd07d5478fee58c9fa3618881 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 13 Feb 2009 19:03:38 +0100 Subject: tevent: fix compiler warning in pytevent.c metze --- lib/tevent/pytevent.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/tevent') 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) -- cgit