vmstat: fix compiler warnings
vmstat.c:817:7: warning: declaration of 'tmp' shadows a previous local [-Wshadow] vmstat.c:708:7: warning: shadowed declaration is here [-Wshadow] Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
22ceeca4a6
commit
ac97321851
4
vmstat.c
4
vmstat.c
@ -816,8 +816,8 @@ int main(int argc, char *argv[])
|
|||||||
usage(stderr);
|
usage(stderr);
|
||||||
|
|
||||||
if (moreheaders) {
|
if (moreheaders) {
|
||||||
int tmp = winhi() - 3;
|
int wheight = winhi() - 3;
|
||||||
height = ((tmp > 0) ? tmp : 22);
|
height = ((wheight > 0) ? wheight : 22);
|
||||||
}
|
}
|
||||||
setlinebuf(stdout);
|
setlinebuf(stdout);
|
||||||
switch (statMode) {
|
switch (statMode) {
|
||||||
|
Loading…
Reference in New Issue
Block a user