diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-12-23 20:56:41 -0600 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-24 01:51:04 -0600 |
commit | d0ba9f001474bfee9b1e8fb516effab736cd4050 (patch) | |
tree | 1f4f21c4cf230e2438b1a9fac46eab7e7714b5e6 /source4/scripting | |
parent | 3ee442c54f658e0dc9541a492e46fd8f6bf3a7f4 (diff) | |
download | samba-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/scripting')
-rw-r--r-- | source4/scripting/python/misc.i | 1 | ||||
-rw-r--r-- | source4/scripting/python/misc_wrap.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/source4/scripting/python/misc.i b/source4/scripting/python/misc.i index 3af10dfce9..2f41840670 100644 --- a/source4/scripting/python/misc.i +++ b/source4/scripting/python/misc.i @@ -22,6 +22,7 @@ #include "includes.h" #include "ldb.h" #include "param/param.h" +#include "auth/credentials/credentials.h" #include "dsdb/samdb/samdb.h" #include "lib/ldb-samba/ldif_handlers.h" %} diff --git a/source4/scripting/python/misc_wrap.c b/source4/scripting/python/misc_wrap.c index 03128c2e9e..a7493550cc 100644 --- a/source4/scripting/python/misc_wrap.c +++ b/source4/scripting/python/misc_wrap.c @@ -2530,6 +2530,7 @@ static swig_module_info swig_module = {swig_types, 27, 0, 0, 0, 0}; #include "includes.h" #include "ldb.h" #include "param/param.h" +#include "auth/credentials/credentials.h" #include "dsdb/samdb/samdb.h" #include "lib/ldb-samba/ldif_handlers.h" @@ -3016,7 +3017,7 @@ SWIGINTERN PyObject *_wrap_dsdb_attach_schema_from_ldif_file(PyObject *SWIGUNUSE "ldb context must be non-NULL"); result = dsdb_attach_schema_from_ldif_file(arg1,(char const *)arg2,(char const *)arg3); if (!W_ERROR_IS_OK(result)) { - PyObject *obj = Py_BuildValue("(i,s)", (&result)->v, win_errstr(result)); + PyObject *obj = Py_BuildValue((char *)"(i,s)", (&result)->v, win_errstr(result)); PyErr_SetObject(PyExc_RuntimeError, obj); SWIG_fail; } else if (resultobj == NULL) { |