1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

pysmbd: reformat py_smbd_have_posix_acls() kwnames and PyArg_ParseTupleAndKeywords() call

No change in behaviour.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Ralph Boehme 2019-12-17 14:16:52 +01:00
parent b08c955ae9
commit 59a6c9a4ce

View File

@ -627,8 +627,13 @@ static PyObject *py_smbd_have_posix_acls(PyObject *self,
static PyObject *py_smbd_set_nt_acl(PyObject *self, PyObject *args, PyObject *kwargs)
{
const char * const kwnames[] = {
"fname", "security_info_sent", "sd",
"service", "session_info", NULL };
"fname",
"security_info_sent",
"sd",
"service",
"session_info",
NULL
};
NTSTATUS status;
char *fname, *service = NULL;
@ -644,8 +649,11 @@ static PyObject *py_smbd_set_nt_acl(PyObject *self, PyObject *args, PyObject *kw
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "siO|zO",
discard_const_p(char *, kwnames),
&fname, &security_info_sent, &py_sd,
&service, &py_session)) {
&fname,
&security_info_sent,
&py_sd,
&service,
&py_session)) {
TALLOC_FREE(frame);
return NULL;
}