diff options
author | pfg <pfg@FreeBSD.org> | 2016-04-19 23:48:27 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-04-19 23:48:27 +0000 |
commit | a7d40a88c91d105dcfe2f235bc84a522bfea3de2 (patch) | |
tree | de102c840aded1a3b5511745802f9d6ef74aeb6f /sys/netinet6 | |
parent | 99e9a53c8161ee4ae550ad18b73edd303a3724f4 (diff) | |
download | FreeBSD-src-a7d40a88c91d105dcfe2f235bc84a522bfea3de2.zip FreeBSD-src-a7d40a88c91d105dcfe2f235bc84a522bfea3de2.tar.gz |
kernel: use our nitems() macro when it is available through param.h.
No functional change, only trivial cases are done in this sweep,
Discussed in: freebsd-current
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/in6_proto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/in6_proto.c b/sys/netinet6/in6_proto.c index cad0931..68cb8fd 100644 --- a/sys/netinet6/in6_proto.c +++ b/sys/netinet6/in6_proto.c @@ -382,7 +382,7 @@ struct domain inet6domain = { .dom_name = "internet6", .dom_protosw = (struct protosw *)inet6sw, .dom_protoswNPROTOSW = (struct protosw *) - &inet6sw[sizeof(inet6sw)/sizeof(inet6sw[0])], + &inet6sw[nitems(inet6sw)], #ifdef RADIX_MPATH .dom_rtattach = rn6_mpath_inithead, #else |