summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
authorjasper <jasper@openbsd.org>2011-03-31 10:36:42 +0000
committerjasper <jasper@openbsd.org>2011-03-31 10:36:42 +0000
commit20c3ef60b71ea19540b862db34745317be2d7dae (patch)
tree2154dcd844ce0a9594fbcc378eb6b392adff7587 /sys/netinet6
parentMake sure everything run from .init and .fini sections gets a properly aligned (diff)
downloadwireguard-openbsd-20c3ef60b71ea19540b862db34745317be2d7dae.tar.xz
wireguard-openbsd-20c3ef60b71ea19540b862db34745317be2d7dae.zip
- use nitems(); no binary change
ok claudio@
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/in6_proto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/in6_proto.c b/sys/netinet6/in6_proto.c
index 021172b0e1a..75750557e8e 100644
--- a/sys/netinet6/in6_proto.c
+++ b/sys/netinet6/in6_proto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in6_proto.c,v 1.61 2011/03/23 13:40:42 claudio Exp $ */
+/* $OpenBSD: in6_proto.c,v 1.62 2011/03/31 10:36:42 jasper Exp $ */
/* $KAME: in6_proto.c,v 1.66 2000/10/10 15:35:47 itojun Exp $ */
/*
@@ -252,7 +252,7 @@ struct ip6protosw inet6sw[] = {
struct domain inet6domain =
{ AF_INET6, "internet6", 0, 0, 0,
(struct protosw *)inet6sw,
- (struct protosw *)&inet6sw[sizeof(inet6sw)/sizeof(inet6sw[0])], 0,
+ (struct protosw *)&inet6sw[nitems(inet6sw)], 0,
#ifndef SMALL_KERNEL
rn_mpath_inithead,
#else