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

More cleanups.

- removed dodgy fprintf() error handling

 - return an error string from open_pipe_creds() so the appropriate
   exception can be raised by the caller

 - reformatting
This commit is contained in:
Tim Potter
-
parent 36ed06cb50
commit d35cad359d
11 changed files with 137 additions and 109 deletions

View File

@@ -96,8 +96,8 @@ PyObject *spoolss_hnd_setjob(PyObject *self, PyObject *args, PyObject *kw)
/* Parse parameters */
if (!PyArg_ParseTupleAndKeywords(args, kw, "ii|i", kwlist, &jobid,
&command, &level))
if (!PyArg_ParseTupleAndKeywords(
args, kw, "ii|i", kwlist, &jobid, &command, &level))
return NULL;
/* Call rpc function */
@@ -127,8 +127,8 @@ PyObject *spoolss_hnd_getjob(PyObject *self, PyObject *args, PyObject *kw)
/* Parse parameters */
if (!PyArg_ParseTupleAndKeywords(args, kw, "i|i", kwlist, &jobid,
&level))
if (!PyArg_ParseTupleAndKeywords(
args, kw, "i|i", kwlist, &jobid, &level))
return NULL;
/* Call rpc function */
@@ -228,8 +228,8 @@ PyObject *spoolss_hnd_startdocprinter(PyObject *self, PyObject *args, PyObject *
/* Parse parameters */
if (!PyArg_ParseTupleAndKeywords(args, kw, "O!", kwlist,
&PyDict_Type, &doc_info))
if (!PyArg_ParseTupleAndKeywords(
args, kw, "O!", kwlist, &PyDict_Type, &doc_info))
return NULL;
/* Check document_info parameter */
@@ -362,8 +362,8 @@ PyObject *spoolss_hnd_writeprinter(PyObject *self, PyObject *args, PyObject *kw)
/* Parse parameters */
if (!PyArg_ParseTupleAndKeywords(args, kw, "O!", kwlist,
&PyString_Type, &data))
if (!PyArg_ParseTupleAndKeywords(
args, kw, "O!", kwlist, &PyString_Type, &data))
return NULL;
/* Call rpc function */