Use nitems() instead of sizeof(name) / sizeof(*name).

MFC after:	2 weeks.
This commit is contained in:
Marcelo Araujo 2016-04-19 04:28:25 +00:00
parent 4d41f47272
commit 0bfc2a1246

View File

@ -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;