summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-08-08 14:34:11 +0200
committerStefan Metzmacher <metze@samba.org>2011-08-08 18:01:19 +0200
commit7542d8d03d31373d55acc2e232ef15aa26bec89f (patch)
treee052eae4fc4751e4e934e2aa6f0b3e12d4b0b02c /source4/scripting
parent5d68c4eb4462dff6cccd8425653b0f8c860ff4b1 (diff)
downloadsamba-7542d8d03d31373d55acc2e232ef15aa26bec89f.tar.gz
samba-7542d8d03d31373d55acc2e232ef15aa26bec89f.tar.bz2
samba-7542d8d03d31373d55acc2e232ef15aa26bec89f.zip
s4:pyglue: PyArg_ParseTuple("I") requires an 'unsigned int' argument
If we pass variable references we don't get implicit casting! metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Aug 8 18:01:19 CEST 2011 on sn-devel-104
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/python/pyglue.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/scripting/python/pyglue.c b/source4/scripting/python/pyglue.c
index 8a82f3502a..cc312ba068 100644
--- a/source4/scripting/python/pyglue.c
+++ b/source4/scripting/python/pyglue.c
@@ -63,9 +63,13 @@ static PyObject *py_generate_random_password(PyObject *self, PyObject *args)
static PyObject *py_unix2nttime(PyObject *self, PyObject *args)
{
time_t t;
+ unsigned int _t;
NTTIME nt;
- if (!PyArg_ParseTuple(args, "I", &t))
+
+ if (!PyArg_ParseTuple(args, "I", &_t)) {
return NULL;
+ }
+ t = _t;
unix_to_nt_time(&nt, t);