summaryrefslogtreecommitdiffstats
path: root/secure/usr.bin
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2008-02-19 07:09:19 +0000
committerru <ru@FreeBSD.org>2008-02-19 07:09:19 +0000
commit2aa5a61fd32c181b70181233740e601e8d759d8d (patch)
tree578506eede3120635d7308f1fed95a1c6147a49a /secure/usr.bin
parent82432917a301545733ec74d5c38248d1009e3e9d (diff)
downloadFreeBSD-src-2aa5a61fd32c181b70181233740e601e8d759d8d.zip
FreeBSD-src-2aa5a61fd32c181b70181233740e601e8d759d8d.tar.gz
getopt(3) returns -1, not EOF.
Diffstat (limited to 'secure/usr.bin')
-rw-r--r--secure/usr.bin/bdes/bdes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/secure/usr.bin/bdes/bdes.c b/secure/usr.bin/bdes/bdes.c
index 8e8125a..22df57a 100644
--- a/secure/usr.bin/bdes/bdes.c
+++ b/secure/usr.bin/bdes/bdes.c
@@ -179,7 +179,7 @@ main(int argc, char *argv[])
/* process the argument list */
kflag = 0;
- while ((i = getopt(argc, argv, "abdF:f:k:m:o:pv:")) != EOF)
+ while ((i = getopt(argc, argv, "abdF:f:k:m:o:pv:")) != -1)
switch(i) {
case 'a': /* key is ASCII */
keybase = KEY_ASCII;
OpenPOWER on IntegriCloud