summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_re_pci.c
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2011-04-03 15:36:04 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2011-04-03 15:36:04 +0000
commit000aa3a35a0346024da8aeb1ddd117a714ab1a98 (patch)
treee30c1afbb9ad547a742ef2e358c4067139433873 /sys/dev/pci/if_re_pci.c
parent445a93dfa951cfdb8d9253fd13836d6a25a4ac4b (diff)
use nitems(); no binary change for drivers that are compiled on amd64.
ok claudio@
Diffstat (limited to 'sys/dev/pci/if_re_pci.c')
-rw-r--r--sys/dev/pci/if_re_pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_re_pci.c b/sys/dev/pci/if_re_pci.c
index 230c462d517..817da7803d7 100644
--- a/sys/dev/pci/if_re_pci.c
+++ b/sys/dev/pci/if_re_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_re_pci.c,v 1.31 2011/03/13 15:35:20 stsp Exp $ */
+/* $OpenBSD: if_re_pci.c,v 1.32 2011/04/03 15:36:02 jasper Exp $ */
/*
* Copyright (c) 2005 Peter Valchev <pvalchev@openbsd.org>
@@ -119,7 +119,7 @@ re_pci_probe(struct device *parent, void *match, void *aux)
return (1);
return (pci_matchbyid((struct pci_attach_args *)aux, re_pci_devices,
- sizeof(re_pci_devices)/sizeof(re_pci_devices[0])));
+ nitems(re_pci_devices)));
}
/*