summaryrefslogtreecommitdiff
path: root/sys/arch/alpha/stand/installboot.c
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 /sys/arch/alpha/stand/installboot.c
parentbf6413046b73005ecca3f5352c8711d00a6d00b9 (diff)
getopt(3) returns -1 when out of args, not EOF, whee!
Diffstat (limited to 'sys/arch/alpha/stand/installboot.c')
-rw-r--r--sys/arch/alpha/stand/installboot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/alpha/stand/installboot.c b/sys/arch/alpha/stand/installboot.c
index f5f664b0075..d829203e434 100644
--- a/sys/arch/alpha/stand/installboot.c
+++ b/sys/arch/alpha/stand/installboot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: installboot.c,v 1.4 1996/10/30 22:40:31 niklas Exp $ */
+/* $OpenBSD: installboot.c,v 1.5 1997/01/15 23:41:48 millert Exp $ */
/* $NetBSD: installboot.c,v 1.2 1995/12/20 00:17:49 cgd Exp $ */
/*
@@ -83,7 +83,7 @@ main(argc, argv)
int mib[2];
size_t size;
- while ((c = getopt(argc, argv, "vn")) != EOF) {
+ while ((c = getopt(argc, argv, "vn")) != -1) {
switch (c) {
case 'n':
/* Do not actually write the bootblock to disk */