From 1cbdcd8dc690fe2578801bfa08c0ee9a3e0c00fa Mon Sep 17 00:00:00 2001 From: jruoho Date: Mon, 19 Apr 2010 11:20:56 +0000 Subject: [PATCH] Use CTLTYPE_BOOL. --- sys/kern/kern_module.c | 8 ++++---- sys/kern/subr_autoconf.c | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sys/kern/kern_module.c b/sys/kern/kern_module.c index 484ff0844845..451a1d5ba33e 100644 --- a/sys/kern/kern_module.c +++ b/sys/kern/kern_module.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_module.c,v 1.63 2010/04/16 11:51:23 pooka Exp $ */ +/* $NetBSD: kern_module.c,v 1.64 2010/04/19 11:20:56 jruoho Exp $ */ /*- * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -34,7 +34,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: kern_module.c,v 1.63 2010/04/16 11:51:23 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_module.c,v 1.64 2010/04/19 11:20:56 jruoho Exp $"); #define _MODULE_INTERNAL @@ -374,13 +374,13 @@ SYSCTL_SETUP(sysctl_module_setup, "sysctl module setup") sysctl_createv(clog, 0, &node, NULL, CTLFLAG_PERMANENT | CTLFLAG_READWRITE, - CTLTYPE_INT, "autoload", + CTLTYPE_BOOL, "autoload", SYSCTL_DESCR("Enable automatic load of modules"), NULL, 0, &module_autoload_on, 0, CTL_CREATE, CTL_EOL); sysctl_createv(clog, 0, &node, NULL, CTLFLAG_PERMANENT | CTLFLAG_READWRITE, - CTLTYPE_INT, "verbose", + CTLTYPE_BOOL, "verbose", SYSCTL_DESCR("Enable verbose output"), NULL, 0, &module_verbose_on, 0, CTL_CREATE, CTL_EOL); diff --git a/sys/kern/subr_autoconf.c b/sys/kern/subr_autoconf.c index f57143b266e1..84009e12c8a6 100644 --- a/sys/kern/subr_autoconf.c +++ b/sys/kern/subr_autoconf.c @@ -1,4 +1,4 @@ -/* $NetBSD: subr_autoconf.c,v 1.204 2010/03/25 19:23:18 pooka Exp $ */ +/* $NetBSD: subr_autoconf.c,v 1.205 2010/04/19 11:20:56 jruoho Exp $ */ /* * Copyright (c) 1996, 2000 Christopher G. Demetriou @@ -77,7 +77,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.204 2010/03/25 19:23:18 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.205 2010/04/19 11:20:56 jruoho Exp $"); #ifdef _KERNEL_OPT #include "opt_ddb.h" @@ -2752,7 +2752,7 @@ sysctl_detach_setup(struct sysctllog **clog) sysctl_createv(clog, 0, &node, NULL, CTLFLAG_PERMANENT | CTLFLAG_READWRITE, - CTLTYPE_INT, "detachall", + CTLTYPE_BOOL, "detachall", SYSCTL_DESCR("Detach all devices at shutdown"), NULL, 0, &detachall, 0, CTL_CREATE, CTL_EOL);