diff options
author | 2011-04-03 15:36:02 +0000 | |
---|---|---|
committer | 2011-04-03 15:36:02 +0000 | |
commit | 299fb045a4edc4b14efb035a921b48756a65a5d9 (patch) | |
tree | c8de2030ccfa503a3a0fb185f3ba70b648d8522a /sys/dev/pci/adv_pci.c | |
parent | Move PPWAIT flag from struct proc to process, so that rthreads in (diff) | |
download | wireguard-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/adv_pci.c')
-rw-r--r-- | sys/dev/pci/adv_pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/adv_pci.c b/sys/dev/pci/adv_pci.c index 3ba0a4a9c77..73a84daf9f9 100644 --- a/sys/dev/pci/adv_pci.c +++ b/sys/dev/pci/adv_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: adv_pci.c,v 1.10 2008/06/26 05:42:17 ray Exp $ */ +/* $OpenBSD: adv_pci.c,v 1.11 2011/04/03 15:36:02 jasper Exp $ */ /* $NetBSD: adv_pci.c,v 1.5 1998/09/26 15:52:55 dante Exp $ */ /* @@ -108,7 +108,7 @@ adv_pci_match(parent, match, aux) void *match, *aux; { return (pci_matchbyid((struct pci_attach_args *)aux, adv_pci_devices, - sizeof(adv_pci_devices)/sizeof(adv_pci_devices[0]))); + nitems(adv_pci_devices))); } |