1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-16 00:23:52 +03:00

Re-order args for enumprinterdrivers function.

This commit is contained in:
Tim Potter
-
parent 68b9525614
commit 5f9f320213
2 changed files with 9 additions and 9 deletions

View File

@@ -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 */