slabtop, vmstat, watch: remove file descriptor constants

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola
2012-03-08 21:49:49 +01:00
parent 7267c3a22b
commit 94fa402d4b
3 changed files with 3 additions and 3 deletions

View File

@@ -694,7 +694,7 @@ static int winhi(void)
struct winsize win;
int rows = 24;
if (ioctl(1, TIOCGWINSZ, &win) != -1 && win.ws_row > 0)
if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &win) != -1 && 0 < win.ws_row)
rows = win.ws_row;
return rows;