summaryrefslogtreecommitdiff
path: root/usr.bin/tcfs/tcfsgenkey.c
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2000-06-20 18:15:59 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2000-06-20 18:15:59 +0000
commit59595c532d2443ad2ce1b25d16ddcb15e5e6952e (patch)
tree32487070d4a4d7e6a8b0c70d2820bf85b3eab410 /usr.bin/tcfs/tcfsgenkey.c
parent586a831be34109f41637ebeda5da9caf92e49b80 (diff)
getopt(3) returns -1, not EOF
Diffstat (limited to 'usr.bin/tcfs/tcfsgenkey.c')
-rw-r--r--usr.bin/tcfs/tcfsgenkey.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tcfs/tcfsgenkey.c b/usr.bin/tcfs/tcfsgenkey.c
index 5ac39401ad2..7ad4454edfd 100644
--- a/usr.bin/tcfs/tcfsgenkey.c
+++ b/usr.bin/tcfs/tcfsgenkey.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcfsgenkey.c,v 1.9 2000/06/20 08:59:53 fgsch Exp $ */
+/* $OpenBSD: tcfsgenkey.c,v 1.10 2000/06/20 18:15:57 aaron Exp $ */
/*
* Transparent Cryptographic File System (TCFS) for NetBSD
@@ -37,7 +37,7 @@ genkey_main(int argn, char *argv[])
/*
* Going to check arguments
*/
- while ((val = getopt(argn, argv, "h")) != EOF)
+ while ((val = getopt(argn, argv, "h")) != -1)
switch (val) {
case 'h':
printf(genkey_usage, argv[0]);