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/tcfsrmkey.c | |
parent | 586a831be34109f41637ebeda5da9caf92e49b80 (diff) |
getopt(3) returns -1, not EOF
Diffstat (limited to 'usr.bin/tcfs/tcfsrmkey.c')
-rw-r--r-- | usr.bin/tcfs/tcfsrmkey.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tcfs/tcfsrmkey.c b/usr.bin/tcfs/tcfsrmkey.c index 3ab8b054c32..04f7092db44 100644 --- a/usr.bin/tcfs/tcfsrmkey.c +++ b/usr.bin/tcfs/tcfsrmkey.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcfsrmkey.c,v 1.6 2000/06/20 08:59:53 fgsch Exp $ */ +/* $OpenBSD: tcfsrmkey.c,v 1.7 2000/06/20 18:15:57 aaron Exp $ */ /* * Transparent Cryptographic File System (TCFS) for NetBSD @@ -43,7 +43,7 @@ rmkey_main(int argc, char *argv[]) int havempname = FALSE, havefsname = FALSE, isgroupkey = FALSE; int havename = FALSE, havefspath = FALSE; - while ((x = getopt(argc, argv, "f:p:g:")) != EOF) { + while ((x = getopt(argc, argv, "f:p:g:")) != -1) { switch(x) { case 'p': havempname = TRUE; |