From f7a8453482995cbce0e55b1bdb4180af109519cc Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Wed, 11 Dec 2019 20:20:46 +0100 Subject: [PATCH] Small simplification in ACL_init --- acl.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/acl.c b/acl.c index 6f51a04..2bd05d8 100644 --- a/acl.c +++ b/acl.c @@ -130,15 +130,17 @@ static PyObject* ACL_new(PyTypeObject* type, PyObject* args, /* Initialization of a new ACL instance */ static int ACL_init(PyObject* obj, PyObject* args, PyObject *keywds) { ACL_Object* self = (ACL_Object*) obj; -#ifdef HAVE_LINUX static char *kwlist[] = { "file", "fd", "text", "acl", "filedef", - "mode", NULL }; - char *format = "|O&OsO!O&i"; - int mode = -1; -#else - static char *kwlist[] = { "file", "fd", "text", "acl", "filedef", NULL }; - char *format = "|O&OsO!O&"; +#ifdef HAVE_LINUX + "mode", #endif + NULL }; + char *format = "|O&OsO!O&" +#ifdef HAVE_LINUX + "i" +#endif + ; + int mode = -1; PyObject *file = NULL; PyObject *filedef = NULL; char *text = NULL; -- 2.39.5