From: Karel Zak Date: Mon, 1 Aug 2011 14:19:54 +0000 (+0200) Subject: chfn: fix compiler warnings [-Wsign-compare] X-Git-Tag: v2.20-rc2~130 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8d48924681e67a10567ea0523078d1a8ada0bb66;p=thirdparty%2Futil-linux.git chfn: fix compiler warnings [-Wsign-compare] Signed-off-by: Karel Zak --- diff --git a/login-utils/chfn.c b/login-utils/chfn.c index 7399b179f0..59aefb1970 100644 --- a/login-utils/chfn.c +++ b/login-utils/chfn.c @@ -407,7 +407,7 @@ static int check_gecos_string (msg, gecos) char *msg; char *gecos; { - int i, c; + unsigned int i, c; if (strlen(gecos) > MAX_FIELD_SIZE) { if (msg != NULL)