]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
pysmbd: reformat py_smbd_get_sys_acl() kwnames and PyArg_ParseTupleAndKeywords()...
authorRalph Boehme <slow@samba.org>
Tue, 17 Dec 2019 13:55:54 +0000 (14:55 +0100)
committerRalph Boehme <slow@samba.org>
Fri, 20 Dec 2019 11:41:41 +0000 (11:41 +0000)
No change in behaviour.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/pysmbd.c

index f0bb2e71cda224065cb1f2c93989343722ba15ad..2bbd7c0631cc1ee0eb867d783d394abc203a2fce 100644 (file)
@@ -825,7 +825,12 @@ static PyObject *py_smbd_set_sys_acl(PyObject *self, PyObject *args, PyObject *k
  */
 static PyObject *py_smbd_get_sys_acl(PyObject *self, PyObject *args, PyObject *kwargs)
 {
-       const char * const kwnames[] = { "fname", "acl_type", "service", NULL };
+       const char * const kwnames[] = {
+               "fname",
+               "acl_type",
+               "service",
+               NULL
+       };
        char *fname;
        PyObject *py_acl;
        struct smb_acl_t *acl;
@@ -837,7 +842,9 @@ static PyObject *py_smbd_get_sys_acl(PyObject *self, PyObject *args, PyObject *k
 
        if (!PyArg_ParseTupleAndKeywords(args, kwargs, "si|z",
                                         discard_const_p(char *, kwnames),
-                                        &fname, &acl_type, &service)) {
+                                        &fname,
+                                        &acl_type,
+                                        &service)) {
                TALLOC_FREE(frame);
                return NULL;
        }