From 6eb30d794ce616080c5c42511c39f16643769221 Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Mon, 8 Oct 2007 06:56:07 +0200 Subject: [PATCH] Fix a compilation warning with python2.4 It seems python2.4 expects the format argument to PyArg_ParseTupleAndKeywords to be "char*" and thus the compiler emits a warning when passing "const char*" (python2.5 is betteri here). Remove the const from format in ACL_init to fix this. --- acl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acl.c b/acl.c index ccff803..a7c8310 100644 --- a/acl.c +++ b/acl.c @@ -72,11 +72,11 @@ static int ACL_init(PyObject* obj, PyObject* args, PyObject *keywds) { #ifdef HAVE_LINUX static char *kwlist[] = { "file", "fd", "text", "acl", "filedef", "mode", NULL }; - const char *format = "|sisO!sH"; + char *format = "|sisO!sH"; mode_t mode = 0; #else static char *kwlist[] = { "file", "fd", "text", "acl", "filedef", NULL }; - const char *format = "|sisO!s"; + char *format = "|sisO!s"; #endif char *file = NULL; char *filedef = NULL; -- 2.39.2