]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
pysmbd: reformat py_smbd_unlink() kwnames and PyArg_ParseTupleAndKeywords() call
authorRalph Boehme <slow@samba.org>
Tue, 17 Dec 2019 11:59:32 +0000 (12:59 +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 20412d460cbd001cd22930b107ad7ebe923bcba0..d3e8a21b35b6b222c2fa235e9f394359770e9f5c 100644 (file)
@@ -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;
        }