From 05ff244cc0fb11e85fc7fa1148edeb7f72f99e84 Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Wed, 27 Jul 2011 18:37:14 +1000 Subject: s4-libnet: py_net - Remove parsing for credentials argument py_creds are not used anywhere in the function. Signed-off-by: Andrew Tridgell --- source4/libnet/py_net.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'source4') 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; } -- cgit