mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
pysmbd: reformat py_smbd_set_sys_acl() 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:
parent
33f33dc08e
commit
af1f6e9fd1
@ -771,7 +771,13 @@ static PyObject *py_smbd_get_nt_acl(PyObject *self, PyObject *args, PyObject *kw
|
||||
*/
|
||||
static PyObject *py_smbd_set_sys_acl(PyObject *self, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
const char * const kwnames[] = { "fname", "acl_type", "acl", "service", NULL };
|
||||
const char * const kwnames[] = {
|
||||
"fname",
|
||||
"acl_type",
|
||||
"acl",
|
||||
"service",
|
||||
NULL
|
||||
};
|
||||
TALLOC_CTX *frame = talloc_stackframe();
|
||||
int ret;
|
||||
char *fname, *service = NULL;
|
||||
@ -782,7 +788,10 @@ static PyObject *py_smbd_set_sys_acl(PyObject *self, PyObject *args, PyObject *k
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "siO|z",
|
||||
discard_const_p(char *, kwnames),
|
||||
&fname, &acl_type, &py_acl, &service)) {
|
||||
&fname,
|
||||
&acl_type,
|
||||
&py_acl,
|
||||
&service)) {
|
||||
TALLOC_FREE(frame);
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user