Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern explicitly initialize static boolean
details: https://anonhg.NetBSD.org/src/rev/363fce31b104
branches: trunk
changeset: 749474:363fce31b104
user: pooka <pooka%NetBSD.org@localhost>
date: Mon Nov 30 15:37:56 2009 +0000
description:
explicitly initialize static boolean
diffstat:
sys/kern/subr_xcall.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 4228b96a2f7e -r 363fce31b104 sys/kern/subr_xcall.c
--- a/sys/kern/subr_xcall.c Mon Nov 30 14:34:17 2009 +0000
+++ b/sys/kern/subr_xcall.c Mon Nov 30 15:37:56 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_xcall.c,v 1.10 2009/03/05 13:18:51 uebayasi Exp $ */
+/* $NetBSD: subr_xcall.c,v 1.11 2009/11/30 15:37:56 pooka Exp $ */
/*-
* Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.
@@ -74,7 +74,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_xcall.c,v 1.10 2009/03/05 13:18:51 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_xcall.c,v 1.11 2009/11/30 15:37:56 pooka Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -108,7 +108,7 @@
void
xc_init_cpu(struct cpu_info *ci)
{
- static bool again;
+ static bool again = false;
int error;
if (!again) {
Home |
Main Index |
Thread Index |
Old Index