diff options
author | Theodore Tso <tytso@mit.edu> | 1998-05-06 20:24:10 +0000 |
---|---|---|
committer | Theodore Tso <tytso@mit.edu> | 1998-05-06 20:24:10 +0000 |
commit | df85cc01656c2a234642047ea22b44b5f6a65683 (patch) | |
tree | c8eb10be62668ae2cde30336430d8145a3d30df3 /src/clients/kdestroy | |
parent | 376a54c9f64fbb57813e5902bd46ed63e9b2c746 (diff) | |
download | krb5-df85cc01656c2a234642047ea22b44b5f6a65683.tar.gz krb5-df85cc01656c2a234642047ea22b44b5f6a65683.tar.xz krb5-df85cc01656c2a234642047ea22b44b5f6a65683.zip |
POSIX states that getopt returns -1 when it is done parsing options,
not EOF.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10550 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/clients/kdestroy')
-rw-r--r-- | src/clients/kdestroy/ChangeLog | 5 | ||||
-rw-r--r-- | src/clients/kdestroy/kdestroy.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/clients/kdestroy/ChangeLog b/src/clients/kdestroy/ChangeLog index 15b38506d7..428f1d3faa 100644 --- a/src/clients/kdestroy/ChangeLog +++ b/src/clients/kdestroy/ChangeLog @@ -1,3 +1,8 @@ +1998-05-06 Theodore Ts'o <tytso@rsts-11.mit.edu> + + * kdestroy.c (main): POSIX states that getopt returns -1 when it + is done parsing options, not EOF. + Wed Feb 18 15:40:31 1998 Tom Yu <tlyu@mit.edu> * Makefile.in: Remove trailing slash from thisconfigdir. Fix up diff --git a/src/clients/kdestroy/kdestroy.c b/src/clients/kdestroy/kdestroy.c index 97869a316b..b52ccb246d 100644 --- a/src/clients/kdestroy/kdestroy.c +++ b/src/clients/kdestroy/kdestroy.c @@ -55,7 +55,7 @@ main(argc, argv) if (strrchr(argv[0], '/')) argv[0] = strrchr(argv[0], '/')+1; - while ((c = getopt(argc, argv, "qc:")) != EOF) { + while ((c = getopt(argc, argv, "qc:")) != -1) { switch (c) { case 'q': quiet = 1; |