From: Ralph Boehme Date: Tue, 17 Dec 2019 11:54:11 +0000 (+0100) Subject: pysmbd: reformat py_smbd_set_simple_acl() kwnames and PyArg_ParseTupleAndKeywords... X-Git-Tag: ldb-2.1.0~175 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9796ebcec4f98d81608e8e3d500745b1dc5f9101;p=thirdparty%2Fsamba.git pysmbd: reformat py_smbd_set_simple_acl() 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 e5836b49f54..9381dfd91bb 100644 --- a/source3/smbd/pysmbd.c +++ b/source3/smbd/pysmbd.c @@ -424,7 +424,13 @@ static SMB_ACL_T make_simple_acl(TALLOC_CTX *mem_ctx, */ static PyObject *py_smbd_set_simple_acl(PyObject *self, PyObject *args, PyObject *kwargs) { - const char * const kwnames[] = { "fname", "mode", "gid", "service", NULL }; + const char * const kwnames[] = { + "fname", + "mode", + "gid", + "service", + NULL + }; char *fname, *service = NULL; int ret; int mode, gid = -1; @@ -434,7 +440,10 @@ static PyObject *py_smbd_set_simple_acl(PyObject *self, PyObject *args, PyObject if (!PyArg_ParseTupleAndKeywords(args, kwargs, "si|iz", discard_const_p(char *, kwnames), - &fname, &mode, &gid, &service)) + &fname, + &mode, + &gid, + &service)) return NULL; frame = talloc_stackframe();