artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3807fa0
)
allow boot from any [0-9] unit (wd+scsi fits now both)
author
mickey
<mickey@openbsd.org>
Thu, 23 Jan 1997 06:42:50 +0000
(06:42 +0000)
committer
mickey
<mickey@openbsd.org>
Thu, 23 Jan 1997 06:42:50 +0000
(06:42 +0000)
sys/arch/i386/boot/sys.c
patch
|
blob
|
history
diff --git
a/sys/arch/i386/boot/sys.c
b/sys/arch/i386/boot/sys.c
index
bd22e78
..
cf9d135
100644
(file)
--- a/
sys/arch/i386/boot/sys.c
+++ b/
sys/arch/i386/boot/sys.c
@@
-207,10
+207,11
@@
openrd()
* Look inside brackets for unit number, and partition *
\*******************************************************/
if (*cp >= '0' && *cp <= '9')
- if ((unit = *cp++ - '0') > 1) {
- printf("Bad unit\n");
- return 1;
- }
+ unit = *cp++ - '0'; /* enough for both wd and sd */
+ else {
+ printf("Bad unit\n");
+ return 1;
+ }
if (!*cp || (*cp == ',' && !*++cp))
return 1;
if (*cp >= 'a' && *cp <= 'p')