aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2003-12-23 12:39:39 +0000
committerDimitri Sokolyuk <demon@dim13.org>2003-12-23 12:39:39 +0000
commit96634437d31eb32de3348f8df1909038efaa2eea (patch)
treec89f7ebd2c91a6937804c389bf22bbbd236a417e
parent4b19f6fcc4d48c0e90daad7ef7d188847f3ab900 (diff)
fix curs_set, ioctl
-rw-r--r--watch.c4
1 files 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);