Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Use CTLTYPE_BOOL.
details: https://anonhg.NetBSD.org/src/rev/77621da633ac
branches: trunk
changeset: 754081:77621da633ac
user: jruoho <jruoho%NetBSD.org@localhost>
date: Mon Apr 19 11:20:56 2010 +0000
description:
Use CTLTYPE_BOOL.
diffstat:
sys/kern/kern_module.c | 8 ++++----
sys/kern/subr_autoconf.c | 6 +++---
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (61 lines):
diff -r ab70babe4c51 -r 77621da633ac sys/kern/kern_module.c
--- a/sys/kern/kern_module.c Mon Apr 19 08:09:02 2010 +0000
+++ b/sys/kern/kern_module.c Mon Apr 19 11:20:56 2010 +0000
@@ -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_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 -r ab70babe4c51 -r 77621da633ac sys/kern/subr_autoconf.c
--- a/sys/kern/subr_autoconf.c Mon Apr 19 08:09:02 2010 +0000
+++ b/sys/kern/subr_autoconf.c Mon Apr 19 11:20:56 2010 +0000
@@ -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_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);
Home |
Main Index |
Thread Index |
Old Index