diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2011-11-18 19:24:29 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2011-11-18 19:24:29 +0000 |
commit | dadf930e3d2e5448c44d1bb337d93086477e41c8 (patch) | |
tree | c0ef0a7d07971950ad4783ba7fe87bc904e37a6d /sys/arch | |
parent | 83768ca667df9c53e9e49b6fa18314bf871aec67 (diff) |
Don't bother keeping a local copy of boot_dev in parse_prom_bootdev().
Reminded by naddy@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/alpha/alpha/autoconf.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/arch/alpha/alpha/autoconf.c b/sys/arch/alpha/alpha/autoconf.c index bf9562ea2eb..117c64fa3a0 100644 --- a/sys/arch/alpha/alpha/autoconf.c +++ b/sys/arch/alpha/alpha/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.33 2010/11/28 21:00:03 miod Exp $ */ +/* $OpenBSD: autoconf.c,v 1.34 2011/11/18 19:24:28 miod Exp $ */ /* $NetBSD: autoconf.c,v 1.16 1996/11/13 21:13:04 cgd Exp $ */ /* @@ -111,7 +111,6 @@ diskconf(void) void parse_prom_bootdev() { - static char hacked_boot_dev[128]; static struct bootdev_data bd; char *cp, *scp, *boot_fields[8]; int i, done; @@ -120,13 +119,13 @@ parse_prom_bootdev() booted_partition = 0; bootdev_data = NULL; - bcopy(bootinfo.booted_dev, hacked_boot_dev, sizeof hacked_boot_dev); + bcopy(bootinfo.booted_dev, boot_dev, sizeof boot_dev); #if 0 printf("parse_prom_bootdev: boot dev = \"%s\"\n", boot_dev); #endif i = 0; - scp = cp = hacked_boot_dev; + scp = cp = boot_dev; for (done = 0; !done; cp++) { if (*cp != ' ' && *cp != '\0') continue; |