From: Karel Zak Date: Mon, 1 Aug 2011 10:01:04 +0000 (+0200) Subject: lib: [strutils.c] fix compiler warnings [-Wsign-compare] X-Git-Tag: v2.20-rc2~157 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b28f22673d10e24d0797c6631999617c4a467875;p=thirdparty%2Futil-linux.git lib: [strutils.c] fix compiler warnings [-Wsign-compare] Signed-off-by: Karel Zak --- diff --git a/lib/strutils.c b/lib/strutils.c index 31a487228c..da395e4472 100644 --- a/lib/strutils.c +++ b/lib/strutils.c @@ -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;