Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/acpi use __arraycount
details: https://anonhg.NetBSD.org/src/rev/9627c51db8f1
branches: trunk
changeset: 749029:9627c51db8f1
user: cegger <cegger%NetBSD.org@localhost>
date: Sat Nov 14 09:54:10 2009 +0000
description:
use __arraycount
diffstat:
sys/dev/acpi/acpi.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r fc069776e6de -r 9627c51db8f1 sys/dev/acpi/acpi.c
--- a/sys/dev/acpi/acpi.c Sat Nov 14 09:42:50 2009 +0000
+++ b/sys/dev/acpi/acpi.c Sat Nov 14 09:54:10 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi.c,v 1.133 2009/09/16 16:34:49 dyoung Exp $ */
+/* $NetBSD: acpi.c,v 1.134 2009/11/14 09:54:10 cegger Exp $ */
/*-
* Copyright (c) 2003, 2007 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.133 2009/09/16 16:34:49 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.134 2009/11/14 09:54:10 cegger Exp $");
#include "opt_acpi.h"
#include "opt_pcifixup.h"
@@ -989,8 +989,8 @@
else {
int i;
- for (i = 0; i < sizeof(acpi_knowndevs) /
- sizeof(acpi_knowndevs[0]); i++) {
+ for (i = 0; i < __arraycount(acpi_knowndevs);
+ i++) {
if (strcmp(acpi_knowndevs[i].pnp,
pnpstr) == 0) {
aprint_normal("[%s] ",
Home |
Main Index |
Thread Index |
Old Index