summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-23 20:22:46 -0600
committerStefan Metzmacher <metze@samba.org>2007-12-24 01:51:03 -0600
commit3ee442c54f658e0dc9541a492e46fd8f6bf3a7f4 (patch)
treee1c76db8cbab5723b4e82dbc57b2f83b7886ab56 /source4/libcli
parentaa0a06f13c44e0eca0b3f2f0c34f0f7995b87159 (diff)
downloadsamba-3ee442c54f658e0dc9541a492e46fd8f6bf3a7f4.tar.gz
samba-3ee442c54f658e0dc9541a492e46fd8f6bf3a7f4.tar.bz2
samba-3ee442c54f658e0dc9541a492e46fd8f6bf3a7f4.zip
r26571: Hide warnings about unused macros and casting qualifiers in autogenerated files.
(This used to be commit cb76c60007ae1254181c09ba1ab09c419f500bc5)
Diffstat (limited to 'source4/libcli')
-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) {