git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d68c4e
)
s4:pyglue: PyArg_ParseTuple("I") requires an 'unsigned int' argument
author
Stefan Metzmacher
<metze@samba.org>
Mon, 8 Aug 2011 12:34:11 +0000
(14:34 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Mon, 8 Aug 2011 16:01:19 +0000
(18:01 +0200)
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
source4/scripting/python/pyglue.c
patch
|
blob
|
history
diff --git
a/source4/scripting/python/pyglue.c
b/source4/scripting/python/pyglue.c
index 8a82f3502a52edc53e1b90a790244b972995cf65..cc312ba0689b38e9aff4330314ec59b180c8c074 100644
(file)
--- 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);