mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 21:05:08 +00:00
Bring back the cast removed in my previous commit to allow us build vmstat
with WARNS 2. This cast was first introduced at r87690. Reported by: bde, pfg and ngie MFC after: 3 weeks.
This commit is contained in:
parent
56eeadd845
commit
ee1acd865e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=315049
|
@ -288,13 +288,13 @@ main(int argc, char *argv[])
|
||||||
namelist[X_SUM].n_name = "_cnt";
|
namelist[X_SUM].n_name = "_cnt";
|
||||||
goto retry_nlist;
|
goto retry_nlist;
|
||||||
}
|
}
|
||||||
for (c = 0; c < nitems(namelist); c++)
|
for (c = 0; c < (int)(nitems(namelist)); c++)
|
||||||
if (namelist[c].n_type == 0)
|
if (namelist[c].n_type == 0)
|
||||||
bufsize += strlen(namelist[c].n_name) + 1;
|
bufsize += strlen(namelist[c].n_name) + 1;
|
||||||
bufsize += len + 1;
|
bufsize += len + 1;
|
||||||
buf = bp = alloca(bufsize);
|
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) {
|
if (namelist[c].n_type == 0) {
|
||||||
xo_error(" %s",
|
xo_error(" %s",
|
||||||
namelist[c].n_name);
|
namelist[c].n_name);
|
||||||
|
|
Loading…
Reference in a new issue