diff options
author | Tim Potter <tpot@samba.org> | 2002-04-03 04:47:44 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-04-03 04:47:44 +0000 |
commit | c15c667afbc221944745ce2a14f138bcb0e9e1ed (patch) | |
tree | a076ad98c55e2756cfe1a0ec5ec50d839ab63dff /source3/python/py_spoolss_drivers.c | |
parent | 5414561d40f02fe29ff24f61fd46d3c1af7c4654 (diff) | |
download | samba-c15c667afbc221944745ce2a14f138bcb0e9e1ed.tar.gz samba-c15c667afbc221944745ce2a14f138bcb0e9e1ed.tar.bz2 samba-c15c667afbc221944745ce2a14f138bcb0e9e1ed.zip |
Start to make argument ordering consistent.
(This used to be commit e84cc7ea84042b2460baef32a39448d620612bbc)
Diffstat (limited to 'source3/python/py_spoolss_drivers.c')
-rw-r--r-- | source3/python/py_spoolss_drivers.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/python/py_spoolss_drivers.c b/source3/python/py_spoolss_drivers.c index 014167db27..b19d93b4c1 100644 --- a/source3/python/py_spoolss_drivers.c +++ b/source3/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 */ |