diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-01-15 23:44:39 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-01-15 23:44:39 +0000 |
commit | 552d265b6ced1e56d31f20f16a7fe9ae818d568b (patch) | |
tree | 219a59b7e7a5ef53ddfc66cdc38e73e3f79258c8 /kerberosIV/kerberos/kerberos.c | |
parent | bf6413046b73005ecca3f5352c8711d00a6d00b9 (diff) |
getopt(3) returns -1 when out of args, not EOF, whee!
Diffstat (limited to 'kerberosIV/kerberos/kerberos.c')
-rw-r--r-- | kerberosIV/kerberos/kerberos.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kerberosIV/kerberos/kerberos.c b/kerberosIV/kerberos/kerberos.c index 5cbc693c55f..c3ad1b27030 100644 --- a/kerberosIV/kerberos/kerberos.c +++ b/kerberosIV/kerberos/kerberos.c @@ -1,4 +1,4 @@ -/* $Id: kerberos.c,v 1.3 1996/09/17 23:29:37 deraadt Exp $ */ +/* $Id: kerberos.c,v 1.4 1997/01/15 23:40:52 millert Exp $ */ /*- * Copyright 1987, 1988 by the Student Information Processing Board @@ -627,7 +627,7 @@ main(int argc, char **argv) progname = argv[0]; - while ((c = getopt(argc, argv, "snmp:a:l:r:")) != EOF) { + while ((c = getopt(argc, argv, "snmp:a:l:r:")) != -1) { switch(c) { case 's': /* |