summaryrefslogtreecommitdiff
path: root/source4/libcli/util
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libcli/util')
-rw-r--r--source4/libcli/util/errors.i4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/libcli/util/errors.i b/source4/libcli/util/errors.i
index 3f6efda468..ec230a9c18 100644
--- a/source4/libcli/util/errors.i
+++ b/source4/libcli/util/errors.i
@@ -20,7 +20,7 @@
#ifdef SWIGPYTHON
%typemap(out,noblock=1) WERROR {
if (!W_ERROR_IS_OK($1)) {
- PyObject *obj = Py_BuildValue("(i,s)", $1.v, win_errstr($1));
+ PyObject *obj = Py_BuildValue("(i,s)", $1.v, (char *)win_errstr($1));
PyErr_SetObject(PyExc_RuntimeError, obj);
SWIG_fail;
} else if ($result == NULL) {
@@ -30,7 +30,7 @@
%typemap(out,noblock=1) NTSTATUS {
if (NT_STATUS_IS_ERR($1)) {
- PyObject *obj = Py_BuildValue("(i,s)", $1.v, nt_errstr($1));
+ PyObject *obj = Py_BuildValue("(i,s)", $1.v, (char *)nt_errstr($1));
PyErr_SetObject(PyExc_RuntimeError, obj);
SWIG_fail;
} else if ($result == NULL) {