diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-01-15 23:44:39 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-01-15 23:44:39 +0000 |
commit | 552d265b6ced1e56d31f20f16a7fe9ae818d568b (patch) | |
tree | 219a59b7e7a5ef53ddfc66cdc38e73e3f79258c8 /sbin/bim | |
parent | bf6413046b73005ecca3f5352c8711d00a6d00b9 (diff) |
getopt(3) returns -1 when out of args, not EOF, whee!
Diffstat (limited to 'sbin/bim')
-rw-r--r-- | sbin/bim/bim.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/bim/bim.c b/sbin/bim/bim.c index 5c8daecbc75..bbb52f522ed 100644 --- a/sbin/bim/bim.c +++ b/sbin/bim/bim.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bim.c,v 1.2 1996/06/23 14:29:56 deraadt Exp $ */ +/* $OpenBSD: bim.c,v 1.3 1997/01/15 23:41:09 millert Exp $ */ /* $NetBSD: bim.c,v 1.4 1995/09/28 07:08:49 phil Exp $ */ /* @@ -618,7 +618,7 @@ char *argv[]; cmdscnt = 0; opterr = TRUE; fname = DEFAULT_DEVICE; - while ((optchar = getopt (argc, argv, "c:")) != EOF) + while ((optchar = getopt (argc, argv, "c:")) != -1) switch (optchar) { case 'c': if (cmdscnt == MAXARGCMDS) usage(); argcmds[cmdscnt++] = optarg; |