Module Name: src
Committed By: cegger
Date: Thu Jul 8 09:42:09 UTC 2010
Modified Files:
src/sys/arch/x86/x86: mtrr_i686.c
Log Message:
use __arraycount
To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/x86/x86/mtrr_i686.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/arch/x86/x86/mtrr_i686.c
diff -u src/sys/arch/x86/x86/mtrr_i686.c:1.21 src/sys/arch/x86/x86/mtrr_i686.c:1.22
--- src/sys/arch/x86/x86/mtrr_i686.c:1.21 Thu Jun 17 06:38:19 2010
+++ src/sys/arch/x86/x86/mtrr_i686.c Thu Jul 8 09:42:08 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: mtrr_i686.c,v 1.21 2010/06/17 06:38:19 mrg Exp $ */
+/* $NetBSD: mtrr_i686.c,v 1.22 2010/07/08 09:42:08 cegger Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mtrr_i686.c,v 1.21 2010/06/17 06:38:19 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mtrr_i686.c,v 1.22 2010/07/08 09:42:08 cegger Exp $");
#include "opt_multiprocessor.h"
@@ -98,7 +98,7 @@
};
-static const int nmtrr_raw = sizeof(mtrr_raw)/sizeof(mtrr_raw[0]);
+static const int nmtrr_raw = __arraycount(mtrr_raw);
static int i686_mtrr_vcnt = 0;
static struct mtrr_state *mtrr_var_raw;