From 000aa3a35a0346024da8aeb1ddd117a714ab1a98 Mon Sep 17 00:00:00 2001 From: Jasper Lievisse Adriaanse Date: Sun, 3 Apr 2011 15:36:04 +0000 Subject: use nitems(); no binary change for drivers that are compiled on amd64. ok claudio@ --- sys/dev/pci/auvia.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/pci/auvia.c') diff --git a/sys/dev/pci/auvia.c b/sys/dev/pci/auvia.c index adde9086c00..8bc1af6bfb9 100644 --- a/sys/dev/pci/auvia.c +++ b/sys/dev/pci/auvia.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auvia.c,v 1.47 2010/09/12 03:17:34 jakemsr Exp $ */ +/* $OpenBSD: auvia.c,v 1.48 2011/04/03 15:36:02 jasper Exp $ */ /* $NetBSD: auvia.c,v 1.28 2002/11/04 16:38:49 kent Exp $ */ /*- @@ -233,7 +233,7 @@ int auvia_match(struct device *parent, void *match, void *aux) { return (pci_matchbyid((struct pci_attach_args *)aux, auvia_devices, - sizeof(auvia_devices)/sizeof(auvia_devices[0]))); + nitems(auvia_devices))); } int -- cgit v1.2.3