Use CTLTYPE_BOOL.
This commit is contained in:
parent
57628e87d5
commit
1cbdcd8dc6
|
@ -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 <sys/cdefs.h>
|
||||
__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);
|
||||
|
|
|
@ -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 <sys/cdefs.h>
|
||||
__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);
|
||||
|
|
Loading…
Reference in New Issue