From: Ralph Boehme Date: Tue, 17 Dec 2019 11:58:08 +0000 (+0100) Subject: pysmbd: reformat py_smbd_chown() kwnames and PyArg_ParseTupleAndKeywords() call X-Git-Tag: ldb-2.1.0~174 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=399ebb56865202414cd2b5a8f1880d8c3e8a697a;p=thirdparty%2Fsamba.git pysmbd: reformat py_smbd_chown() 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 9381dfd91bb..20412d460cb 100644 --- a/source3/smbd/pysmbd.c +++ b/source3/smbd/pysmbd.c @@ -478,7 +478,13 @@ static PyObject *py_smbd_set_simple_acl(PyObject *self, PyObject *args, PyObject */ static PyObject *py_smbd_chown(PyObject *self, PyObject *args, PyObject *kwargs) { - const char * const kwnames[] = { "fname", "uid", "gid", "service", NULL }; + const char * const kwnames[] = { + "fname", + "uid", + "gid", + "service", + NULL + }; connection_struct *conn; int ret; NTSTATUS status; @@ -489,7 +495,10 @@ static PyObject *py_smbd_chown(PyObject *self, PyObject *args, PyObject *kwargs) if (!PyArg_ParseTupleAndKeywords(args, kwargs, "sii|z", discard_const_p(char *, kwnames), - &fname, &uid, &gid, &service)) + &fname, + &uid, + &gid, + &service)) return NULL; frame = talloc_stackframe();