]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lib: [strutils.c] fix compiler warnings [-Wsign-compare]
authorKarel Zak <kzak@redhat.com>
Mon, 1 Aug 2011 10:01:04 +0000 (12:01 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 1 Aug 2011 10:01:29 +0000 (12:01 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
lib/strutils.c

index 31a487228ce1dbb0105a6f89f5408fad5576af0f..da395e447237c364d374c8106f7e7cc21f0fdea6 100644 (file)
@@ -360,7 +360,7 @@ int string_to_idarray(const char *list, int ary[], size_t arysz,
                        int (name2id)(const char *, size_t))
 {
        const char *begin = NULL, *p;
-       int n = 0;
+       size_t n = 0;
 
        if (!list || !*list || !ary || !arysz || !name2id)
                return -1;