summaryrefslogtreecommitdiffstats
path: root/sys/netnatm/natm_proto.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netnatm/natm_proto.c')
-rw-r--r--sys/netnatm/natm_proto.c2
1 files changed, 1 insertions, 1 deletions
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 = {
OpenPOWER on IntegriCloud