summaryrefslogtreecommitdiff
path: root/source4/libcli/util
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-23 20:56:41 -0600
committerStefan Metzmacher <metze@samba.org>2007-12-24 01:51:04 -0600
commitd0ba9f001474bfee9b1e8fb516effab736cd4050 (patch)
tree1f4f21c4cf230e2438b1a9fac46eab7e7714b5e6 /source4/libcli/util
parent3ee442c54f658e0dc9541a492e46fd8f6bf3a7f4 (diff)
downloadsamba-d0ba9f001474bfee9b1e8fb516effab736cd4050.tar.gz
samba-d0ba9f001474bfee9b1e8fb516effab736cd4050.tar.bz2
samba-d0ba9f001474bfee9b1e8fb516effab736cd4050.zip
r26572: Fix warnings in the Python code.
(This used to be commit 15038d9586d0b58f301ca8c39c21ef10c4283f28)
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 ec230a9c18..ede536a995 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, (char *)win_errstr($1));
+ PyObject *obj = Py_BuildValue((char *)"(i,s)", $1.v, 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, (char *)nt_errstr($1));
+ PyObject *obj = Py_BuildValue((char *)"(i,s)", $1.v, nt_errstr($1));
PyErr_SetObject(PyExc_RuntimeError, obj);
SWIG_fail;
} else if ($result == NULL) {