summaryrefslogtreecommitdiff
path: root/sbin/fsck_msdos
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-01-15 23:44:39 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-01-15 23:44:39 +0000
commit552d265b6ced1e56d31f20f16a7fe9ae818d568b (patch)
tree219a59b7e7a5ef53ddfc66cdc38e73e3f79258c8 /sbin/fsck_msdos
parentbf6413046b73005ecca3f5352c8711d00a6d00b9 (diff)
getopt(3) returns -1 when out of args, not EOF, whee!
Diffstat (limited to 'sbin/fsck_msdos')
-rw-r--r--sbin/fsck_msdos/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/fsck_msdos/main.c b/sbin/fsck_msdos/main.c
index 4ee85d06814..dd6c38901c0 100644
--- a/sbin/fsck_msdos/main.c
+++ b/sbin/fsck_msdos/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.3 1996/06/23 14:30:45 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.4 1997/01/15 23:41:47 millert Exp $ */
/* $NetBSD: main.c,v 1.1.4.1 1996/05/31 18:41:54 jtc Exp $ */
/*
@@ -35,7 +35,7 @@
#ifndef lint
-static char rcsid[] = "$OpenBSD: main.c,v 1.3 1996/06/23 14:30:45 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.4 1997/01/15 23:41:47 millert Exp $";
#endif /* not lint */
#include <stdlib.h>
@@ -74,7 +74,7 @@ main(argc, argv)
int ret = 0, erg;
int ch;
- while ((ch = getopt(argc, argv, "vpyn")) != EOF) {
+ while ((ch = getopt(argc, argv, "vpyn")) != -1) {
switch (ch) {
case 'n':
alwaysno = 1;