aboutsummaryrefslogtreecommitdiff
path: root/sbin/dumpon
diff options
context:
space:
mode:
authorMarcelo Araujo <araujo@FreeBSD.org>2016-04-19 04:28:25 +0000
committerMarcelo Araujo <araujo@FreeBSD.org>2016-04-19 04:28:25 +0000
commit0bfc2a124685b154d8b679c4d46b1fab0ec158f4 (patch)
tree580f7ba28a5ead845f625d3f62ce0251d7113b48 /sbin/dumpon
parent4d41f472721353c0f703abb75801dcf64f1d0790 (diff)
downloadsrc-0bfc2a124685b154d8b679c4d46b1fab0ec158f4.tar.gz
src-0bfc2a124685b154d8b679c4d46b1fab0ec158f4.zip
Use nitems() instead of sizeof(name) / sizeof(*name).
MFC after: 2 weeks.
Notes
Notes: svn path=/head/; revision=298244
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 1ecbff3a6383..8407111c7f65 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;