mirror of
https://github.com/samba-team/samba.git
synced 2025-01-14 19:24:43 +03:00
Start to make argument ordering consistent.
This commit is contained in:
parent
f05c3c6fc5
commit
e84cc7ea84
@ -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 */
|
||||
|
@ -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] == '\\')
|
||||
|
Loading…
x
Reference in New Issue
Block a user