diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-08-08 14:31:40 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-08-08 16:45:27 +0200 |
commit | 5d68c4eb4462dff6cccd8425653b0f8c860ff4b1 (patch) | |
tree | 71690e1fba51cc025159d8427862fc6a6f3f1877 /source4 | |
parent | 3b11ee1db1bbe966900fc917e3358937d1b23d62 (diff) | |
download | samba-5d68c4eb4462dff6cccd8425653b0f8c860ff4b1.tar.gz samba-5d68c4eb4462dff6cccd8425653b0f8c860ff4b1.tar.bz2 samba-5d68c4eb4462dff6cccd8425653b0f8c860ff4b1.zip |
s4:py_net: PyArg_ParseTuple("i") requires an 'int' argument
If we pass variable references we don't get implicit casting!
metze
Diffstat (limited to 'source4')
-rw-r--r-- | source4/libnet/py_net.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/libnet/py_net.c b/source4/libnet/py_net.c index 895d2772b3..b43f69bf0f 100644 --- a/source4/libnet/py_net.c +++ b/source4/libnet/py_net.c @@ -44,6 +44,7 @@ typedef struct { static PyObject *py_net_join_member(py_net_Object *self, PyObject *args, PyObject *kwargs) { struct libnet_Join_member r; + int _level = 0; NTSTATUS status; PyObject *result; TALLOC_CTX *mem_ctx; @@ -51,8 +52,10 @@ static PyObject *py_net_join_member(py_net_Object *self, PyObject *args, PyObjec if (!PyArg_ParseTupleAndKeywords(args, kwargs, "ssi:Join", discard_const_p(char *, kwnames), &r.in.domain_name, &r.in.netbios_name, - &r.in.level)) + &_level)) { return NULL; + } + r.in.level = _level; mem_ctx = talloc_new(self->mem_ctx); if (mem_ctx == NULL) { |