diff options
| author | 2011-03-31 10:36:42 +0000 | |
|---|---|---|
| committer | 2011-03-31 10:36:42 +0000 | |
| commit | 20c3ef60b71ea19540b862db34745317be2d7dae (patch) | |
| tree | 2154dcd844ce0a9594fbcc378eb6b392adff7587 /sys/netinet6 | |
| parent | Make sure everything run from .init and .fini sections gets a properly aligned (diff) | |
| download | wireguard-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.c | 4 |
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 |
