1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-04 00:59:13 +03:00

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
This commit is contained in:
Stefan Metzmacher
2011-08-08 14:34:11 +02:00
parent 5d68c4eb44
commit 7542d8d03d

View File

@ -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);