diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 1999-05-23 17:19:25 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 1999-05-23 17:19:25 +0000 |
commit | 5d08734a5b3d621dfd1d78fa4e113f91bde28818 (patch) | |
tree | 52aa3b410719e56423a92a9ab98f8a11e62df786 /kerberosIV | |
parent | c392499dddf5d594aff961f2059d4c3d007889bf (diff) |
getopt(3) returns -1, not EOF
Diffstat (limited to 'kerberosIV')
-rw-r--r-- | kerberosIV/kadmin/kadmin.c | 4 | ||||
-rw-r--r-- | kerberosIV/kadmind/admin_server.c | 4 | ||||
-rw-r--r-- | kerberosIV/kauth/kauth.c | 4 | ||||
-rw-r--r-- | kerberosIV/kerberos/kerberos.c | 4 | ||||
-rw-r--r-- | kerberosIV/ksrvutil/ksrvutil.c | 4 |
5 files changed, 10 insertions, 10 deletions
diff --git a/kerberosIV/kadmin/kadmin.c b/kerberosIV/kadmin/kadmin.c index 7a604deb79a..0ddc290f1dd 100644 --- a/kerberosIV/kadmin/kadmin.c +++ b/kerberosIV/kadmin/kadmin.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kadmin.c,v 1.7 1998/02/18 11:53:45 art Exp $ */ +/* $OpenBSD: kadmin.c,v 1.8 1999/05/23 17:19:24 aaron Exp $ */ /* $KTH: kadmin.c,v 1.50 1997/11/03 19:51:46 assar Exp $ */ /* @@ -348,7 +348,7 @@ do_init(int argc, char **argv) memset(&pr, 0, sizeof(pr)); if (krb_get_default_principal(pr.name, pr.instance, default_realm) < 0) errx (1, "I could not even guess who you might be"); - while ((c = getopt(argc, argv, "p:u:r:mt")) != EOF) + while ((c = getopt(argc, argv, "p:u:r:mt")) != -1) switch (c) { case 'p': case 'u': diff --git a/kerberosIV/kadmind/admin_server.c b/kerberosIV/kadmind/admin_server.c index 5467b871eed..8c50c24c536 100644 --- a/kerberosIV/kadmind/admin_server.c +++ b/kerberosIV/kadmind/admin_server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: admin_server.c,v 1.4 1998/08/16 02:42:09 art Exp $ */ +/* $OpenBSD: admin_server.c,v 1.5 1999/05/23 17:19:24 aaron Exp $ */ /* $KTH: admin_server.c,v 1.42 1997/12/04 19:31:39 assar Exp $ */ /* @@ -362,7 +362,7 @@ main(int argc, char **argv) /* admin_server main routine */ memset(krbrlm, 0, sizeof(krbrlm)); - while ((c = getopt(argc, argv, "f:hmnd:a:r:")) != EOF) + while ((c = getopt(argc, argv, "f:hmnd:a:r:")) != -1) switch(c) { case 'f': /* Syslog file name change */ prm.sysfile = optarg; diff --git a/kerberosIV/kauth/kauth.c b/kerberosIV/kauth/kauth.c index 2a3c6734747..4d89ff18c33 100644 --- a/kerberosIV/kauth/kauth.c +++ b/kerberosIV/kauth/kauth.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kauth.c,v 1.4 1998/10/28 17:57:09 art Exp $ */ +/* $OpenBSD: kauth.c,v 1.5 1999/05/23 17:19:24 aaron Exp $ */ /* $KTH: kauth.c,v 1.81 1997/12/09 10:36:33 joda Exp $ */ /* @@ -180,7 +180,7 @@ main(int argc, char **argv) strupr(princ.realm); } - while ((c = getopt(argc, argv, "r:t:f:hdl:n:c:")) != EOF) + while ((c = getopt(argc, argv, "r:t:f:hdl:n:c:")) != -1) switch (c) { case 'd': krb_enable_debug(); diff --git a/kerberosIV/kerberos/kerberos.c b/kerberosIV/kerberos/kerberos.c index 0bd7a89a35a..567e7d2fef6 100644 --- a/kerberosIV/kerberos/kerberos.c +++ b/kerberosIV/kerberos/kerberos.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kerberos.c,v 1.15 1998/11/28 23:41:01 art Exp $ */ +/* $OpenBSD: kerberos.c,v 1.16 1999/05/23 17:19:24 aaron Exp $ */ /* $KTH: kerberos.c,v 1.70 1997/09/26 18:06:38 joda Exp $ */ /* @@ -689,7 +689,7 @@ main(int argc, char **argv) umask(077); /* Create protected files */ - while ((c = getopt(argc, argv, "snmp:P:a:l:r:i:")) != EOF) { + while ((c = getopt(argc, argv, "snmp:P:a:l:r:i:")) != -1) { switch(c) { case 's': /* diff --git a/kerberosIV/ksrvutil/ksrvutil.c b/kerberosIV/ksrvutil/ksrvutil.c index 6530d6d057f..5fd37b25fb8 100644 --- a/kerberosIV/ksrvutil/ksrvutil.c +++ b/kerberosIV/ksrvutil/ksrvutil.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ksrvutil.c,v 1.5 1997/12/17 07:50:16 art Exp $ */ +/* $OpenBSD: ksrvutil.c,v 1.6 1999/05/23 17:19:24 aaron Exp $ */ /* $KTH: ksrvutil.c,v 1.39 1997/05/02 14:28:52 assar Exp $ */ /* @@ -323,7 +323,7 @@ main(int argc, char **argv) local_realm[REALM_SZ - 1] = '\0'; } - while((c = getopt(argc, argv, "ikc:f:p:r:")) != EOF) { + while((c = getopt(argc, argv, "ikc:f:p:r:")) != -1) { switch (c) { case 'i': interactive++; |