summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k/stand/bootsd
diff options
context:
space:
mode:
authorDale S. Rahn <rahnds@cvs.openbsd.org>1996-02-16 00:13:23 +0000
committerDale S. Rahn <rahnds@cvs.openbsd.org>1996-02-16 00:13:23 +0000
commit2713b15b3db2be7a272244702deaa00bb955198b (patch)
tree33f687791e892c6e919546a534bc895866b505b5 /sys/arch/mvme68k/stand/bootsd
parent9c4fda775695243450930786c3a558ec235d53a4 (diff)
Fixes for mvme68k tape and disk bootloaders.
fix argument parsing for disk and tape boot bootsd/boot.c bugcrt/m68k/Makefile.inc tape boot was broken completely bootst/bootst.c minor bug if bootloader was specific size (aout exec header is 0x20 not 0x30). writvid/wrtvid.c
Diffstat (limited to 'sys/arch/mvme68k/stand/bootsd')
-rw-r--r--sys/arch/mvme68k/stand/bootsd/boot.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/mvme68k/stand/bootsd/boot.c b/sys/arch/mvme68k/stand/bootsd/boot.c
index b10b16b5f75..e649328f1ee 100644
--- a/sys/arch/mvme68k/stand/bootsd/boot.c
+++ b/sys/arch/mvme68k/stand/bootsd/boot.c
@@ -1,4 +1,4 @@
-/* $Id: boot.c,v 1.5 1995/12/06 10:54:55 deraadt Exp $ */
+/* $Id: boot.c,v 1.6 1996/02/16 00:13:18 rahnds Exp $ */
/*-
* Copyright (c) 1995 Theo de Raadt
@@ -274,7 +274,7 @@ parse_args()
int i, howto = 0;
char c;
- if (bugargs.arg_start == bugargs.arg_end) {
+ if (bugargs.arg_start != bugargs.arg_end) {
ptr = bugargs.arg_start;
while (c = *ptr) {
while (c == ' ')
@@ -291,8 +291,9 @@ parse_args()
}
while ((c = *++ptr) && c != ' ') {
for (i = 0; i < sizeof(bf)/sizeof(bf[0]); i++)
- if (bf[i].c == c)
+ if (bf[i].c == c) {
howto |= bf[i].bit;
+ }
}
}
}