Use nitems() instead of sizeof(name) / sizeof(*name).
MFC after: 2 weeks.
This commit is contained in:
parent
4d41f47272
commit
0bfc2a1246
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user