]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
getopt returns -1, not EOF
authorMarc Horowitz <marc@mit.edu>
Tue, 27 Oct 1998 04:17:35 +0000 (04:17 +0000)
committerMarc Horowitz <marc@mit.edu>
Tue, 27 Oct 1998 04:17:35 +0000 (04:17 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/branches/marc-3des@10994 dc483132-0cff-0310-8789-dd5450dbe970

src/clients/kinit/kinit.c

index 479afb4ebac31dcf5c3d13c735cc85f32cc1d50c..f02db2e186237283bf8da1eba5d35cec2a0fbbff 100644 (file)
@@ -125,9 +125,9 @@ main(argc, argv)
     while (
 #ifdef GETOPT_LONG
           (i = getopt_long(argc, argv, "r:fpAl:s:c:kt:RS:v",
-                           long_options, &idx)) != EOF
+                           long_options, &idx)) != -1
 #else
-          (i = getopt(argc, argv, "r:fpAl:s:c:kt:RS:v")) != EOF
+          (i = getopt(argc, argv, "r:fpAl:s:c:kt:RS:v")) != -1
 #endif
           ) {
        switch (i) {