summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-04-03 04:47:44 +0000
committerTim Potter <tpot@samba.org>2002-04-03 04:47:44 +0000
commite84cc7ea84042b2460baef32a39448d620612bbc (patch)
tree8cc8637cc7fbf2d6ac9e96ce557c5a1f3e5129a1 /source
parentf05c3c6fc5047c87906a5677b2559acf13bf6678 (diff)
downloadsamba-e84cc7ea84042b2460baef32a39448d620612bbc.tar.gz
samba-e84cc7ea84042b2460baef32a39448d620612bbc.tar.xz
samba-e84cc7ea84042b2460baef32a39448d620612bbc.zip
Start to make argument ordering consistent.
Diffstat (limited to 'source')
-rw-r--r--source/python/py_spoolss_drivers.c7
-rw-r--r--source/python/py_spoolss_ports.c4
2 files changed, 6 insertions, 5 deletions
diff --git a/source/python/py_spoolss_drivers.c b/source/python/py_spoolss_drivers.c
index 014167db27b..b19d93b4c14 100644
--- a/source/python/py_spoolss_drivers.c
+++ b/source/python/py_spoolss_drivers.c
@@ -242,14 +242,15 @@ PyObject *spoolss_getprinterdriverdir(PyObject *self, PyObject *args,
DRIVER_DIRECTORY_CTR ctr;
uint32 needed, level;
char *arch = "Windows NT x86", *server_name;
- static char *kwlist[] = {"server", "creds", NULL};
+ static char *kwlist[] = {"server", "level", "arch", "creds", NULL};
struct cli_state *cli = NULL;
TALLOC_CTX *mem_ctx = NULL;
/* Parse parameters */
- if (!PyArg_ParseTupleAndKeywords(args, kw, "s|is", kwlist,
- &server_name, &level, &arch))
+ if (!PyArg_ParseTupleAndKeywords(args, kw, "s|isO!", kwlist,
+ &server_name, &level, &arch,
+ &PyDict_Type, &creds))
return NULL;
/* Call rpc function */
diff --git a/source/python/py_spoolss_ports.c b/source/python/py_spoolss_ports.c
index a7d55a7897b..d224408476e 100644
--- a/source/python/py_spoolss_ports.c
+++ b/source/python/py_spoolss_ports.c
@@ -51,8 +51,8 @@ PyObject *spoolss_enumports(PyObject *self, PyObject *args, PyObject *kw)
/* Parse parameters */
if (!PyArg_ParseTupleAndKeywords(args, kw, "s|iO!", kwlist,
- &server, &level, &PyDict_Type,
- &creds))
+ &server, &creds, &level,
+ &PyDict_Type))
return NULL;
if (server[0] == '\\' && server[1] == '\\')