summaryrefslogtreecommitdiff
path: root/usr.bin/tcfs/tcfsrun.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/tcfsrun.c
parent586a831be34109f41637ebeda5da9caf92e49b80 (diff)
getopt(3) returns -1, not EOF
Diffstat (limited to 'usr.bin/tcfs/tcfsrun.c')
-rw-r--r--usr.bin/tcfs/tcfsrun.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tcfs/tcfsrun.c b/usr.bin/tcfs/tcfsrun.c
index 1051f70f094..9970ba6bf3a 100644
--- a/usr.bin/tcfs/tcfsrun.c
+++ b/usr.bin/tcfs/tcfsrun.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcfsrun.c,v 1.8 2000/06/20 10:46:52 fgsch Exp $ */
+/* $OpenBSD: tcfsrun.c,v 1.9 2000/06/20 18:15:58 aaron Exp $ */
/*
* Transparent Cryptographic File System (TCFS) for NetBSD
@@ -40,7 +40,7 @@ run_main(int argc, char *argv[], char *envp[])
uid = getuid();
- while ((x = getopt(argc, argv, "p:f:")) != EOF) {
+ while ((x = getopt(argc, argv, "p:f:")) != -1) {
switch(x) {
case 'p':
strlcpy(fspath, optarg, sizeof(fspath));