summaryrefslogtreecommitdiff
path: root/source3/python/py_spoolss_printerdata.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-05-16 04:00:31 +0000
committerTim Potter <tpot@samba.org>2002-05-16 04:00:31 +0000
commit286d3a80fdcd316ebbf63b007a24e787143313a4 (patch)
tree7eeabd842ec6e6f1721f5b3ecb19d350092d53e8 /source3/python/py_spoolss_printerdata.c
parentce03ce2e5629930e582f9fd17445e52ce1b08907 (diff)
downloadsamba-286d3a80fdcd316ebbf63b007a24e787143313a4.tar.gz
samba-286d3a80fdcd316ebbf63b007a24e787143313a4.tar.bz2
samba-286d3a80fdcd316ebbf63b007a24e787143313a4.zip
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 used to be commit d35cad359df3bd53e6bb49f6655d4c7b9993abb0)
Diffstat (limited to 'source3/python/py_spoolss_printerdata.c')
-rw-r--r--source3/python/py_spoolss_printerdata.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/python/py_spoolss_printerdata.c b/source3/python/py_spoolss_printerdata.c
index 24e2340059..e1e43fa736 100644
--- a/source3/python/py_spoolss_printerdata.c
+++ b/source3/python/py_spoolss_printerdata.c
@@ -100,7 +100,7 @@ PyObject *spoolss_hnd_getprinterdata(PyObject *self, PyObject *args, PyObject *k
/* Parse parameters */
if (!PyArg_ParseTupleAndKeywords(args, kw, "s", kwlist, &value))
- return NULL;
+ return NULL;
/* Call rpc function */
@@ -132,8 +132,8 @@ PyObject *spoolss_hnd_setprinterdata(PyObject *self, PyObject *args, PyObject *k
uint32 data_size, data_type;
WERROR werror;
- if (!PyArg_ParseTupleAndKeywords(args, kw, "O!", kwlist,
- &PyDict_Type, &py_data))
+ if (!PyArg_ParseTupleAndKeywords(
+ args, kw, "O!", kwlist, &PyDict_Type, &py_data))
return NULL;
if (!py_to_printerdata(&value, &data_type, &data, &data_size, py_data))
@@ -209,7 +209,7 @@ PyObject *spoolss_hnd_deleteprinterdata(PyObject *self, PyObject *args, PyObject
/* Parse parameters */
if (!PyArg_ParseTupleAndKeywords(args, kw, "s", kwlist, &value))
- return NULL;
+ return NULL;
/* Call rpc function */