summaryrefslogtreecommitdiffstats
path: root/sbin/dumpon
diff options
context:
space:
mode:
authoraraujo <araujo@FreeBSD.org>2016-04-19 04:28:25 +0000
committeraraujo <araujo@FreeBSD.org>2016-04-19 04:28:25 +0000
commit60e49e1bc5dfa7cec72b179c23d3d24912afac73 (patch)
tree580f7ba28a5ead845f625d3f62ce0251d7113b48 /sbin/dumpon
parentd9d7af0f72fcc6548edbab3157da5895ece390e2 (diff)
downloadFreeBSD-src-60e49e1bc5dfa7cec72b179c23d3d24912afac73.zip
FreeBSD-src-60e49e1bc5dfa7cec72b179c23d3d24912afac73.tar.gz
Use nitems() instead of sizeof(name) / sizeof(*name).
MFC after: 2 weeks.
Diffstat (limited to 'sbin/dumpon')
-rw-r--r--sbin/dumpon/dumpon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/dumpon/dumpon.c b/sbin/dumpon/dumpon.c
index 1ecbff3..8407111 100644
--- a/sbin/dumpon/dumpon.c
+++ b/sbin/dumpon/dumpon.c
@@ -72,7 +72,7 @@ static void
check_size(int fd, const char *fn)
{
int name[] = { CTL_HW, HW_PHYSMEM };
- size_t namelen = sizeof(name) / sizeof(*name);
+ size_t namelen = nitems(name);
unsigned long physmem;
size_t len;
off_t mediasize;
OpenPOWER on IntegriCloud