From 64cd03f38e57b5b8e6c0261d414a74dbccb11566 Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Sat, 15 May 1999 17:56:34 +0000 Subject: [PATCH] Make sure sysctls use udev_t, not dev_t. Submitted by: Thomas Valentino Crimi --- sys/alpha/alpha/autoconf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/alpha/alpha/autoconf.c b/sys/alpha/alpha/autoconf.c index 30621f3a7cd9..0dbb91cf0868 100644 --- a/sys/alpha/alpha/autoconf.c +++ b/sys/alpha/alpha/autoconf.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: autoconf.c,v 1.23 1999/05/10 17:12:38 peter Exp $ + * $Id: autoconf.c,v 1.24 1999/05/14 11:13:19 dfr Exp $ */ #include "opt_bootp.h" @@ -321,12 +321,12 @@ static int sysctl_kern_dumpdev SYSCTL_HANDLER_ARGS { int error; - dev_t ndumpdev; + udev_t ndumpdev; - ndumpdev = dumpdev; + ndumpdev = dev2udev(dumpdev); error = sysctl_handle_opaque(oidp, &ndumpdev, sizeof ndumpdev, req); if (error == 0 && req->newptr != NULL) - error = setdumpdev(ndumpdev); + error = setdumpdev(udev2dev(ndumpdev, 1)); return (error); }