summaryrefslogtreecommitdiff
path: root/auth/credentials/pycredentials.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth/credentials/pycredentials.c')
-rw-r--r--auth/credentials/pycredentials.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/auth/credentials/pycredentials.c b/auth/credentials/pycredentials.c
index 1b86e001557..966c625a10e 100644
--- a/auth/credentials/pycredentials.c
+++ b/auth/credentials/pycredentials.c
@@ -19,6 +19,7 @@
#include <Python.h>
#include "python/py3compat.h"
#include "includes.h"
+#include "python/modules.h"
#include "pycredentials.h"
#include "param/param.h"
#include "lib/cmdline/credentials.h"
@@ -760,7 +761,8 @@ static PyMethodDef py_creds_methods[] = {
},
{
.ml_name = "get_ntlm_response",
- .ml_meth = (PyCFunction)py_creds_get_ntlm_response,
+ .ml_meth = PY_DISCARD_FUNC_SIG(PyCFunction,
+ py_creds_get_ntlm_response),
.ml_flags = METH_VARARGS | METH_KEYWORDS,
.ml_doc = "S.get_ntlm_response"
"(flags, challenge[, target_info]) -> "