summaryrefslogtreecommitdiff
path: root/source3/python/py_spoolss_drivers.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-05-03 06:21:59 +0000
committerTim Potter <tpot@samba.org>2002-05-03 06:21:59 +0000
commitfe816061c1543ae8435f6e80801d5c3d5366461e (patch)
tree729d6d9ef7db6d0638bf5e06f3cef8f6515d1eba /source3/python/py_spoolss_drivers.c
parentaa69c1ee80fbf7f45d61861089daeb5828e91229 (diff)
downloadsamba-fe816061c1543ae8435f6e80801d5c3d5366461e.tar.gz
samba-fe816061c1543ae8435f6e80801d5c3d5366461e.tar.bz2
samba-fe816061c1543ae8435f6e80801d5c3d5366461e.zip
Re-order args for enumprinterdrivers function.
(This used to be commit 5f9f32021300d47dcc068192428ee48b8aa246ea)
Diffstat (limited to 'source3/python/py_spoolss_drivers.c')
-rw-r--r--source3/python/py_spoolss_drivers.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/python/py_spoolss_drivers.c b/source3/python/py_spoolss_drivers.c
index 5c0d6174cf..de2fd5626b 100644
--- a/source3/python/py_spoolss_drivers.c
+++ b/source3/python/py_spoolss_drivers.c
@@ -31,15 +31,15 @@ PyObject *spoolss_enumprinterdrivers(PyObject *self, PyObject *args,
int level = 1, i;
uint32 needed, num_drivers;
char *arch = "Windows NT x86", *server_name;
- static char *kwlist[] = {"server", "level", "arch", "creds", NULL};
+ static char *kwlist[] = {"server", "creds", "level", "arch", NULL};
struct cli_state *cli = NULL;
TALLOC_CTX *mem_ctx = NULL;
/* Parse parameters */
- if (!PyArg_ParseTupleAndKeywords(args, kw, "s|isO!", kwlist,
- &server_name, &level, &arch,
- &PyDict_Type, &creds))
+ if (!PyArg_ParseTupleAndKeywords(args, kw, "s|O!is", kwlist,
+ &server_name, &PyDict_Type, &creds,
+ &level, &arch))
return NULL;
/* Call rpc function */