diff options
| author | Marcelo Araujo <araujo@FreeBSD.org> | 2017-03-11 04:36:15 +0000 |
|---|---|---|
| committer | Marcelo Araujo <araujo@FreeBSD.org> | 2017-03-11 04:36:15 +0000 |
| commit | ee1acd865e550660a11a58e749db826a0165b875 (patch) | |
| tree | 1660dcad86fd034b9c8f9c567abb36208e9a5bd9 /usr.bin/vmstat | |
| parent | 56eeadd8456e43ae35c3964360e1467bd2da7bc2 (diff) | |
Notes
Diffstat (limited to 'usr.bin/vmstat')
| -rw-r--r-- | usr.bin/vmstat/vmstat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c index 640af527bc4c..bc734f045a12 100644 --- a/usr.bin/vmstat/vmstat.c +++ b/usr.bin/vmstat/vmstat.c @@ -288,13 +288,13 @@ retry_nlist: namelist[X_SUM].n_name = "_cnt"; goto retry_nlist; } - for (c = 0; c < nitems(namelist); c++) + for (c = 0; c < (int)(nitems(namelist)); c++) if (namelist[c].n_type == 0) bufsize += strlen(namelist[c].n_name) + 1; bufsize += len + 1; buf = bp = alloca(bufsize); - for (c = 0; c < nitems(namelist); c++) + for (c = 0; c < (int)(nitems(namelist)); c++) if (namelist[c].n_type == 0) { xo_error(" %s", namelist[c].n_name); |
