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:
Sami Kerola 2012-11-02 17:50:57 +00:00 committed by Craig Small
parent 22ceeca4a6
commit ac97321851

View File

@ -816,8 +816,8 @@ int main(int argc, char *argv[])
usage(stderr);
if (moreheaders) {
int tmp = winhi() - 3;
height = ((tmp > 0) ? tmp : 22);
int wheight = winhi() - 3;
height = ((wheight > 0) ? wheight : 22);
}
setlinebuf(stdout);
switch (statMode) {