From a7d40a88c91d105dcfe2f235bc84a522bfea3de2 Mon Sep 17 00:00:00 2001 From: pfg Date: Tue, 19 Apr 2016 23:48:27 +0000 Subject: 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 --- sys/netnatm/natm_proto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/netnatm') diff --git a/sys/netnatm/natm_proto.c b/sys/netnatm/natm_proto.c index b064c43..aa7fa2c 100644 --- a/sys/netnatm/natm_proto.c +++ b/sys/netnatm/natm_proto.c @@ -87,7 +87,7 @@ static struct domain natmdomain = { .dom_name = "natm", .dom_init = natm_init, .dom_protosw = natmsw, - .dom_protoswNPROTOSW = &natmsw[sizeof(natmsw)/sizeof(natmsw[0])], + .dom_protoswNPROTOSW = &natmsw[nitems(natmsw)], }; static struct netisr_handler natm_nh = { -- cgit v1.1