From 96634437d31eb32de3348f8df1909038efaa2eea Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 23 Dec 2003 12:39:39 +0000 Subject: fix curs_set, ioctl --- watch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/watch.c b/watch.c index 7fcfe4e..9ec9673 100644 --- a/watch.c +++ b/watch.c @@ -99,7 +99,7 @@ int main (int argc, char **argv) { } initscr(); - hold_curs = curs_set(NULL); + hold_curs = curs_set(0); if(has_colors()) color_flag = 1; @@ -209,7 +209,7 @@ void title(char *cmd) { void resize() { struct winsize ws; - if(!ioctl(NULL, TIOCGWINSZ, &ws)) { + if(!ioctl(STDOUT_FILENO, TIOCGWINSZ, (char *)&ws)) { LINES = ws.ws_row; COLS = ws.ws_col; resizeterm(LINES, COLS); -- cgit v1.2.3