From: Ralph Boehme Date: Tue, 17 Dec 2019 11:59:32 +0000 (+0100) Subject: pysmbd: reformat py_smbd_unlink() kwnames and PyArg_ParseTupleAndKeywords() call X-Git-Tag: ldb-2.1.0~173 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b08c955ae92db8aae57f821c4080d225b6b01944;p=thirdparty%2Fsamba.git pysmbd: reformat py_smbd_unlink() kwnames and PyArg_ParseTupleAndKeywords() call No change in behaviour. Signed-off-by: Ralph Boehme Reviewed-by: Stefan Metzmacher --- diff --git a/source3/smbd/pysmbd.c b/source3/smbd/pysmbd.c index 20412d460cb..d3e8a21b35b 100644 --- a/source3/smbd/pysmbd.c +++ b/source3/smbd/pysmbd.c @@ -558,7 +558,11 @@ static PyObject *py_smbd_chown(PyObject *self, PyObject *args, PyObject *kwargs) */ static PyObject *py_smbd_unlink(PyObject *self, PyObject *args, PyObject *kwargs) { - const char * const kwnames[] = { "fname", "service", NULL }; + const char * const kwnames[] = { + "fname", + "service", + NULL + }; connection_struct *conn; int ret; struct smb_filename *smb_fname = NULL; @@ -569,7 +573,8 @@ static PyObject *py_smbd_unlink(PyObject *self, PyObject *args, PyObject *kwargs if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s|z", discard_const_p(char *, kwnames), - &fname, &service)) { + &fname, + &service)) { TALLOC_FREE(frame); return NULL; }