diff options
author | 2006-05-28 07:12:11 +0000 | |
---|---|---|
committer | 2006-05-28 07:12:11 +0000 | |
commit | 5207e95c47a4498ae3b3e449d31e845e90cbe780 (patch) | |
tree | 6cf1a4a0bdc4ac0e6d109e1cf4fe7506faefd67b | |
parent | Use bit 23 of the device minor to indicate a control mode device. A (diff) | |
download | wireguard-openbsd-5207e95c47a4498ae3b3e449d31e845e90cbe780.tar.xz wireguard-openbsd-5207e95c47a4498ae3b3e449d31e845e90cbe780.zip |
more fallout from the sensors: Every single ramdisk got broken.
-rw-r--r-- | sys/kern/subr_autoconf.c | 7 |
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 |