Index: usr.bin/vmstat/vmstat.c =================================================================== --- usr.bin/vmstat/vmstat.c +++ usr.bin/vmstat/vmstat.c @@ -289,7 +289,7 @@ goto retry_nlist; } for (c = 0; - c < (int)(sizeof(namelist)/sizeof(namelist[0])); + c < (int)(nitems(namelist)); c++) if (namelist[c].n_type == 0) bufsize += strlen(namelist[c].n_name) + 1; @@ -297,7 +297,7 @@ buf = bp = alloca(bufsize); for (c = 0; - c < (int)(sizeof(namelist)/sizeof(namelist[0])); + c < (int)(nitems(namelist)); c++) if (namelist[c].n_type == 0) { xo_error(" %s",