]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
whereis: fix gcc warnings [-Wsign-compare]
authorKarel Zak <kzak@redhat.com>
Wed, 31 Aug 2011 09:58:01 +0000 (11:58 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 31 Aug 2011 09:58:01 +0000 (11:58 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/whereis.c

index 03ea95e439de8cb1333e389048a4fe53d2fe8972..d776b32dda1e36ad70cf834d8fec984c99218533 100644 (file)
@@ -241,7 +241,7 @@ findin(char *dir, char *cp)
 
 static int inpath(const char *str)
 {
-       int i;
+       size_t i;
 
        for (i = 0; i < ARRAY_SIZE(bindirs) - 1 ; i++)
                if (!strcmp(bindirs[i], str))