]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
chfn: fix compiler warnings [-Wsign-compare]
authorKarel Zak <kzak@redhat.com>
Mon, 1 Aug 2011 14:19:54 +0000 (16:19 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 1 Aug 2011 14:19:54 +0000 (16:19 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/chfn.c

index 7399b179f06a3299ad08f485d435d4501f22be83..59aefb1970343fe997015659395957dc2a359c74 100644 (file)
@@ -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)