From: Karel Zak Date: Wed, 31 Aug 2011 09:58:01 +0000 (+0200) Subject: whereis: fix gcc warnings [-Wsign-compare] X-Git-Tag: v2.21-rc1~468 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cc69f339c13238a4c153e0f4805c59c4c1d01ddf;p=thirdparty%2Futil-linux.git whereis: fix gcc warnings [-Wsign-compare] Signed-off-by: Karel Zak --- diff --git a/misc-utils/whereis.c b/misc-utils/whereis.c index 03ea95e439..d776b32dda 100644 --- a/misc-utils/whereis.c +++ b/misc-utils/whereis.c @@ -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))