diff options
author | Amitay Isaacs <amitay@gmail.com> | 2011-07-27 18:37:14 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-07-28 15:20:53 +1000 |
commit | 05ff244cc0fb11e85fc7fa1148edeb7f72f99e84 (patch) | |
tree | 396ed87fea0d255b8690d58dcb29e29190b94eea | |
parent | d88528081891b51f6ef69651f7173fc708b59916 (diff) | |
download | samba-05ff244cc0fb11e85fc7fa1148edeb7f72f99e84.tar.gz samba-05ff244cc0fb11e85fc7fa1148edeb7f72f99e84.tar.bz2 samba-05ff244cc0fb11e85fc7fa1148edeb7f72f99e84.zip |
s4-libnet: py_net - Remove parsing for credentials argument
py_creds are not used anywhere in the function.
Signed-off-by: Andrew Tridgell <tridge@samba.org>
-rw-r--r-- | source4/libnet/py_net.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/source4/libnet/py_net.c b/source4/libnet/py_net.c index ffcd60da27..0989db0fb4 100644 --- a/source4/libnet/py_net.c +++ b/source4/libnet/py_net.c @@ -83,16 +83,17 @@ static PyObject *py_net_set_password(py_net_Object *self, PyObject *args, PyObje { union libnet_SetPassword r; NTSTATUS status; - PyObject *py_creds; TALLOC_CTX *mem_ctx; struct tevent_context *ev; - const char *kwnames[] = { "account_name", "domain_name", "newpassword", "credentials", NULL }; + const char *kwnames[] = { "account_name", "domain_name", "newpassword", NULL }; r.generic.level = LIBNET_SET_PASSWORD_GENERIC; - if (!PyArg_ParseTupleAndKeywords(args, kwargs, "sssO:set_password", discard_const_p(char *, kwnames), - &r.generic.in.account_name, &r.generic.in.domain_name, - &r.generic.in.newpassword, &py_creds)) { + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "sss:set_password", + discard_const_p(char *, kwnames), + &r.generic.in.account_name, + &r.generic.in.domain_name, + &r.generic.in.newpassword)) { return NULL; } |