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

index 4795bdd5848147aa81042e9ed6ac2b3f69ba48e6..bea581462885d07d85143ad8b8b9f4f5dd01b86e 100644 (file)
@@ -319,7 +319,7 @@ prompt (char *question, char *def_val) {
  */
 static int
 check_shell (char *shell) {
-    int i, c;
+    unsigned int i, c;
 
     if (!shell)
        return -1;