From 767ddcf5e7181e1cb8242a5b9b24645ba5c0889b Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Sun, 13 May 2012 00:47:18 +0200 Subject: [PATCH] Fix more warning found by static checker These are not critical, but they can be clean up so let's do it. --- acl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acl.c b/acl.c index a9e137e..df27ccc 100644 --- a/acl.c +++ b/acl.c @@ -249,7 +249,7 @@ static PyObject* ACL_to_any_text(PyObject *obj, PyObject *args, char *text; ACL_Object *self = (ACL_Object*) obj; PyObject *ret; - char *arg_prefix = NULL; + const char *arg_prefix = NULL; char arg_separator = '\n'; int arg_options = 0; static char *kwlist[] = {"prefix", "separator", "options", NULL}; @@ -385,7 +385,7 @@ static PyObject* ACL_applyto(PyObject* obj, PyObject* args) { int nret; int fd; - if (!PyArg_ParseTuple(args, "O|i", &myarg, &type)) + if (!PyArg_ParseTuple(args, "O|I", &myarg, &type)) return NULL; if(PyBytes_Check(myarg)) { -- 2.39.5