Make sudo pass -Wwrite-strings
This commit is contained in:
@@ -36,8 +36,8 @@ _sudo_ConvMessage__Init(PyObject *py_self, PyObject *py_args, PyObject *py_kwarg
|
||||
|
||||
struct sudo_conv_message conv_message = { 0, 0, NULL };
|
||||
|
||||
static char *keywords[] = { "self", "msg_type", "msg", "timeout", NULL };
|
||||
if (!PyArg_ParseTupleAndKeywords(py_args ? py_args : py_empty, py_kwargs, "Ois|i:sudo.ConvMessage", keywords,
|
||||
static const char *keywords[] = { "self", "msg_type", "msg", "timeout", NULL };
|
||||
if (!PyArg_ParseTupleAndKeywords(py_args ? py_args : py_empty, py_kwargs, "Ois|i:sudo.ConvMessage", (char **)keywords,
|
||||
&py_self, &(conv_message.msg_type), &(conv_message.msg),
|
||||
&(conv_message.timeout)))
|
||||
goto cleanup;
|
||||
|
Reference in New Issue
Block a user