diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-08-23 15:20:49 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-08-23 15:20:49 +0000 |
commit | 66488cfe7b27e30799a64e62a16820fa6454fbb3 (patch) | |
tree | 3af779e4c46ee4b747db3a68ad55a38539d57c4a /sys/arch | |
parent | d53fb971673732f29244ed13df311f7855c477ef (diff) |
Allow wd to be root and some cleanup.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sparc64/sparc64/autoconf.c | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/sys/arch/sparc64/sparc64/autoconf.c b/sys/arch/sparc64/sparc64/autoconf.c index 76a0c8e6e71..f644bd30387 100644 --- a/sys/arch/sparc64/sparc64/autoconf.c +++ b/sys/arch/sparc64/sparc64/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.4 2001/08/22 05:08:11 jason Exp $ */ +/* $OpenBSD: autoconf.c,v 1.5 2001/08/23 15:20:48 art Exp $ */ /* $NetBSD: autoconf.c,v 1.51 2001/07/24 19:32:11 eeh Exp $ */ /* @@ -559,9 +559,9 @@ swapconf() void setroot() { - register struct swdevt *swp; - register struct device *dv; - register int len, majdev, unit, part; + struct swdevt *swp; + struct device *dv; + int len, majdev, unit, part; dev_t nrootdev, nswapdev = NODEV; char buf[128]; dev_t temp; @@ -759,6 +759,7 @@ struct nam2blk { } nam2blk[] = { { "sd", 7 }, { "rd", 5 }, + { "wd", 12 }, { "cd", 18 }, }; @@ -767,7 +768,7 @@ findblkmajor(dv) struct device *dv; { char *name = dv->dv_xname; - register int i; + int i; for (i = 0; i < sizeof(nam2blk)/sizeof(nam2blk[0]); ++i) if (strncmp(name, nam2blk[i].name, strlen(nam2blk[0].name)) == 0 @@ -782,7 +783,7 @@ getdisk(str, len, defpart, devp) int len, defpart; dev_t *devp; { - register struct device *dv; + struct device *dv; if ((dv = parsedisk(str, len, defpart, devp)) == NULL) { printf("use one of:"); @@ -806,8 +807,8 @@ parsedisk(str, len, defpart, devp) int len, defpart; dev_t *devp; { - register struct device *dv; - register char *cp, c; + struct device *dv; + char *cp, c; int majdev, unit, part; if (len == 0) @@ -845,12 +846,12 @@ parsedisk(str, len, defpart, devp) static int getstr(cp, size) - register char *cp; - register int size; + char *cp; + int size; { - register char *lp; - register int c; - register int len; + char *lp; + int c; + int len; lp = cp; len = 0; |