From 000aa3a35a0346024da8aeb1ddd117a714ab1a98 Mon Sep 17 00:00:00 2001 From: Jasper Lievisse Adriaanse Date: Sun, 3 Apr 2011 15:36:04 +0000 Subject: use nitems(); no binary change for drivers that are compiled on amd64. ok claudio@ --- sys/dev/pci/if_vge.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/pci/if_vge.c') diff --git a/sys/dev/pci/if_vge.c b/sys/dev/pci/if_vge.c index 21af7e90866..953a811de9f 100644 --- a/sys/dev/pci/if_vge.c +++ b/sys/dev/pci/if_vge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vge.c,v 1.48 2010/08/27 17:08:00 jsg Exp $ */ +/* $OpenBSD: if_vge.c,v 1.49 2011/04/03 15:36:03 jasper Exp $ */ /* $FreeBSD: if_vge.c,v 1.3 2004/09/11 22:13:25 wpaul Exp $ */ /* * Copyright (c) 2004 @@ -572,7 +572,7 @@ int vge_probe(struct device *dev, void *match, void *aux) { return (pci_matchbyid((struct pci_attach_args *)aux, vge_devices, - sizeof(vge_devices)/sizeof(vge_devices[0]))); + nitems(vge_devices))); } /* -- cgit v1.2.3