diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-06-20 18:15:59 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-06-20 18:15:59 +0000 |
commit | 59595c532d2443ad2ce1b25d16ddcb15e5e6952e (patch) | |
tree | 32487070d4a4d7e6a8b0c70d2820bf85b3eab410 /usr.bin/tcfs/tcfsputkey.c | |
parent | 586a831be34109f41637ebeda5da9caf92e49b80 (diff) |
getopt(3) returns -1, not EOF
Diffstat (limited to 'usr.bin/tcfs/tcfsputkey.c')
-rw-r--r-- | usr.bin/tcfs/tcfsputkey.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tcfs/tcfsputkey.c b/usr.bin/tcfs/tcfsputkey.c index 2266c467a37..dec1b469271 100644 --- a/usr.bin/tcfs/tcfsputkey.c +++ b/usr.bin/tcfs/tcfsputkey.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcfsputkey.c,v 1.10 2000/06/20 08:59:53 fgsch Exp $ */ +/* $OpenBSD: tcfsputkey.c,v 1.11 2000/06/20 18:15:57 aaron Exp $ */ /* * Transparent Cryptographic File System (TCFS) for NetBSD @@ -47,7 +47,7 @@ putkey_main(int argc, char *argv[]) int isgroupkey = FALSE; int havename = FALSE, havefspath = FALSE, havekey = FALSE; - while ((x = getopt(argc, argv, "kf:p:g:")) != EOF) { + while ((x = getopt(argc, argv, "kf:p:g:")) != -1) { switch(x) { case 'k': def = FALSE; |