Module Name: src
Committed By: martin
Date: Fri Jan 14 10:18:21 UTC 2011
Modified Files:
src/sys/kern: kern_module.c subr_autoconf.c
Log Message:
Using "int" variables with sysctl's CTLTYPE_BOOL is a simple receipt to
loose on big endian machines. So make the variables "bool".
To generate a diff of this commit:
cvs rdiff -u -r1.74 -r1.75 src/sys/kern/kern_module.c
cvs rdiff -u -r1.209 -r1.210 src/sys/kern/subr_autoconf.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/kern_module.c
diff -u src/sys/kern/kern_module.c:1.74 src/sys/kern/kern_module.c:1.75
--- src/sys/kern/kern_module.c:1.74 Wed Dec 29 15:07:36 2010
+++ src/sys/kern/kern_module.c Fri Jan 14 10:18:21 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_module.c,v 1.74 2010/12/29 15:07:36 pooka Exp $ */
+/* $NetBSD: kern_module.c,v 1.75 2011/01/14 10:18:21 martin 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.74 2010/12/29 15:07:36 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_module.c,v 1.75 2011/01/14 10:18:21 martin Exp $");
#define _MODULE_INTERNAL
@@ -67,8 +67,8 @@
static struct modlist module_bootlist = TAILQ_HEAD_INITIALIZER(module_bootlist);
static module_t *module_active;
-static int module_verbose_on;
-static int module_autoload_on = 1;
+static bool module_verbose_on;
+static bool module_autoload_on = true;
u_int module_count;
u_int module_builtinlist;
u_int module_autotime = 10;
Index: src/sys/kern/subr_autoconf.c
diff -u src/sys/kern/subr_autoconf.c:1.209 src/sys/kern/subr_autoconf.c:1.210
--- src/sys/kern/subr_autoconf.c:1.209 Mon Aug 16 17:29:52 2010
+++ src/sys/kern/subr_autoconf.c Fri Jan 14 10:18:21 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_autoconf.c,v 1.209 2010/08/16 17:29:52 jruoho Exp $ */
+/* $NetBSD: subr_autoconf.c,v 1.210 2011/01/14 10:18:21 martin 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.209 2010/08/16 17:29:52 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.210 2011/01/14 10:18:21 martin Exp $");
#ifdef _KERNEL_OPT
#include "opt_ddb.h"
@@ -228,7 +228,7 @@
static kmutex_t config_misc_lock;
static kcondvar_t config_misc_cv;
-static int detachall = 0;
+static bool detachall = false;
#define STREQ(s1, s2) \
(*(s1) == *(s2) && strcmp((s1), (s2)) == 0)