diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2011-04-03 15:36:04 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2011-04-03 15:36:04 +0000 |
commit | 000aa3a35a0346024da8aeb1ddd117a714ab1a98 (patch) | |
tree | e30c1afbb9ad547a742ef2e358c4067139433873 /sys/dev/pci/auich.c | |
parent | 445a93dfa951cfdb8d9253fd13836d6a25a4ac4b (diff) |
use nitems(); no binary change for drivers that are compiled on amd64.
ok claudio@
Diffstat (limited to 'sys/dev/pci/auich.c')
-rw-r--r-- | sys/dev/pci/auich.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/auich.c b/sys/dev/pci/auich.c index 6d66b6ec0e5..920bd4e50b7 100644 --- a/sys/dev/pci/auich.c +++ b/sys/dev/pci/auich.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auich.c,v 1.93 2010/09/12 03:17:34 jakemsr Exp $ */ +/* $OpenBSD: auich.c,v 1.94 2011/04/03 15:36:02 jasper Exp $ */ /* * Copyright (c) 2000,2001 Michael Shalayeff @@ -372,7 +372,7 @@ auich_match(parent, match, aux) struct pci_attach_args *pa = aux; int i; - for (i = sizeof(auich_devices)/sizeof(auich_devices[0]); i--;) + for (i = nitems(auich_devices); i--;) if (PCI_VENDOR(pa->pa_id) == auich_devices[i].vendor && PCI_PRODUCT(pa->pa_id) == auich_devices[i].product) return 1; @@ -463,7 +463,7 @@ auich_attach(parent, self, aux) return; } - for (i = sizeof(auich_devices)/sizeof(auich_devices[0]); i--;) + for (i = nitems(auich_devices); i--;) if (PCI_PRODUCT(pa->pa_id) == auich_devices[i].product) break; |