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/esa.c | |
parent | 445a93dfa951cfdb8d9253fd13836d6a25a4ac4b (diff) |
use nitems(); no binary change for drivers that are compiled on amd64.
ok claudio@
Diffstat (limited to 'sys/dev/pci/esa.c')
-rw-r--r-- | sys/dev/pci/esa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/esa.c b/sys/dev/pci/esa.c index 156a8bee9da..dff77f9bf3f 100644 --- a/sys/dev/pci/esa.c +++ b/sys/dev/pci/esa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: esa.c,v 1.22 2010/09/07 16:21:44 deraadt Exp $ */ +/* $OpenBSD: esa.c,v 1.23 2011/04/03 15:36:02 jasper Exp $ */ /* $NetBSD: esa.c,v 1.12 2002/03/24 14:17:35 jmcneill Exp $ */ /* @@ -1015,7 +1015,7 @@ int esa_match(struct device *dev, void *match, void *aux) { return (pci_matchbyid((struct pci_attach_args *)aux, esa_devices, - sizeof(esa_devices)/sizeof(esa_devices[0]))); + nitems(esa_devices))); } void |