summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/twe_pci.c
diff options
context:
space:
mode:
authorjasper <jasper@openbsd.org>2011-04-03 15:36:02 +0000
committerjasper <jasper@openbsd.org>2011-04-03 15:36:02 +0000
commit299fb045a4edc4b14efb035a921b48756a65a5d9 (patch)
treec8de2030ccfa503a3a0fb185f3ba70b648d8522a /sys/dev/pci/twe_pci.c
parentMove PPWAIT flag from struct proc to process, so that rthreads in (diff)
downloadwireguard-openbsd-299fb045a4edc4b14efb035a921b48756a65a5d9.tar.xz
wireguard-openbsd-299fb045a4edc4b14efb035a921b48756a65a5d9.zip
use nitems(); no binary change for drivers that are compiled on amd64.
ok claudio@
Diffstat (limited to 'sys/dev/pci/twe_pci.c')
-rw-r--r--sys/dev/pci/twe_pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/twe_pci.c b/sys/dev/pci/twe_pci.c
index 4f3dc310c5a..02e86eff61a 100644
--- a/sys/dev/pci/twe_pci.c
+++ b/sys/dev/pci/twe_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: twe_pci.c,v 1.12 2006/08/25 04:35:03 brad Exp $ */
+/* $OpenBSD: twe_pci.c,v 1.13 2011/04/03 15:36:03 jasper Exp $ */
/*
* Copyright (c) 2000 Michael Shalayeff
@@ -65,7 +65,7 @@ twe_pci_match(parent, match, aux)
void *aux;
{
return (pci_matchbyid((struct pci_attach_args *)aux, twe_pci_devices,
- sizeof(twe_pci_devices)/sizeof(twe_pci_devices[0])));
+ nitems(twe_pci_devices)));
}
void