summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-05-28 07:12:12 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-05-28 07:12:12 +0000
commit9da7f887d14574246cd67ea0a43eb42eeef7ad71 (patch)
treed8d202a7661a87253584599a5cfc51ff9b46705f
parent21adb0b0cbee1f4da356e4a9e813154a5306c469 (diff)
more fallout from the sensors: Every single ramdisk got broken.
-rw-r--r--sys/kern/subr_autoconf.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/kern/subr_autoconf.c b/sys/kern/subr_autoconf.c
index 13c8acedbc1..2d4d310d7a9 100644
--- a/sys/kern/subr_autoconf.c
+++ b/sys/kern/subr_autoconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_autoconf.c,v 1.47 2006/05/28 01:33:50 mk Exp $ */
+/* $OpenBSD: subr_autoconf.c,v 1.48 2006/05/28 07:12:11 deraadt Exp $ */
/* $NetBSD: subr_autoconf.c,v 1.21 1996/04/04 06:06:18 cgd Exp $ */
/*
@@ -489,14 +489,15 @@ config_detach(struct device *dev, int flags)
struct cfdata *cf;
struct cfattach *ca;
struct cfdriver *cd;
+ int rv = 0, i, devnum = dev->dv_unit;
#ifdef DIAGNOSTIC
struct device *d;
#endif
- int rv = 0, i;
#if NHOTPLUG > 0
char devname[16];
- int devnum = dev->dv_unit;
+#endif
+#if NHOTPLUG > 0
strlcpy(devname, dev->dv_xname, sizeof(devname));
#endif