aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/kldconfig
diff options
context:
space:
mode:
authorMarcelo Araujo <araujo@FreeBSD.org>2016-04-19 04:52:13 +0000
committerMarcelo Araujo <araujo@FreeBSD.org>2016-04-19 04:52:13 +0000
commitdc53e146ce581e686da50eb4516793a550fb2a74 (patch)
treefc64e8c8787fbf6c79e71d4c826ecaad32eef942 /sbin/kldconfig
parent2f21908de4ed18e0b606c6942483073b2541a7ff (diff)
downloadsrc-dc53e146ce581e686da50eb4516793a550fb2a74.tar.gz
src-dc53e146ce581e686da50eb4516793a550fb2a74.zip
Use nitems() from sys/param.h.
MFC after: 2 weeks.
Notes
Notes: svn path=/head/; revision=298248
Diffstat (limited to 'sbin/kldconfig')
-rw-r--r--sbin/kldconfig/kldconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/kldconfig/kldconfig.c b/sbin/kldconfig/kldconfig.c
index 30dc876ab07b..8c7d7327a1de 100644
--- a/sbin/kldconfig/kldconfig.c
+++ b/sbin/kldconfig/kldconfig.c
@@ -85,7 +85,7 @@ getmib(void)
if (miblen != 0)
return;
- miblen = sizeof(mib) / sizeof(mib[0]);
+ miblen = nitems(mib);
if (sysctlnametomib(pathctl, mib, &miblen) != 0)
err(1, "sysctlnametomib(%s)", pathctl);
}