summaryrefslogtreecommitdiff
path: root/sys/dev/onewire/owid.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/onewire/owid.c')
-rw-r--r--sys/dev/onewire/owid.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/onewire/owid.c b/sys/dev/onewire/owid.c
index 3a0e23d8dd1..861f1228528 100644
--- a/sys/dev/onewire/owid.c
+++ b/sys/dev/onewire/owid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: owid.c,v 1.7 2009/10/13 19:33:16 pirofti Exp $ */
+/* $OpenBSD: owid.c,v 1.8 2010/07/08 07:19:54 jasper Exp $ */
/*
* Copyright (c) 2006 Alexander Yurchenko <grange@openbsd.org>
@@ -67,8 +67,7 @@ static const struct onewire_matchfam owid_fams[] = {
int
owid_match(struct device *parent, void *match, void *aux)
{
- return (onewire_matchbyfam(aux, owid_fams,
- sizeof(owid_fams) /sizeof(owid_fams[0])));
+ return (onewire_matchbyfam(aux, owid_fams, nitems(owid_fams)));
}
void