Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 use __arraycount
details: https://anonhg.NetBSD.org/src/rev/9db43ba1d5a8
branches: trunk
changeset: 756181:9db43ba1d5a8
user: cegger <cegger%NetBSD.org@localhost>
date: Thu Jul 08 09:42:08 2010 +0000
description:
use __arraycount
diffstat:
sys/arch/x86/x86/mtrr_i686.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 9a16a6a4ce88 -r 9db43ba1d5a8 sys/arch/x86/x86/mtrr_i686.c
--- a/sys/arch/x86/x86/mtrr_i686.c Thu Jul 08 08:49:54 2010 +0000
+++ b/sys/arch/x86/x86/mtrr_i686.c Thu Jul 08 09:42:08 2010 +0000
@@ -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;
Home |
Main Index |
Thread Index |
Old Index