From 38f81bbecbb46e8ca9b4e2edff951f26ccc96db8 Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Sun, 14 Dec 2008 21:12:43 +0100 Subject: [PATCH] Fix a size_t/ssize_t mismatch ACL library functions return a ssize_t, so all variables that hold return values from such return types must be ssize_t, otherwise comparisons with -1 will fail. --- xattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xattr.c b/xattr.c index 6671a94..370324a 100644 --- a/xattr.c +++ b/xattr.c @@ -376,7 +376,7 @@ get_all(PyObject *self, PyObject *args, PyObject *keywds) char *ns = NULL; char *buf_list, *buf_val; char *s; - size_t nalloc, nlist, nval; + ssize_t nalloc, nlist, nval; PyObject *mylist; target_t tgt; static char *kwlist[] = {"item", "nofollow", "namespace", NULL}; -- 2.39.5