diff options
author | Paul Janzen <pjanzen@cvs.openbsd.org> | 1998-04-28 22:13:33 +0000 |
---|---|---|
committer | Paul Janzen <pjanzen@cvs.openbsd.org> | 1998-04-28 22:13:33 +0000 |
commit | e0a2bdb7580789c975aa1d917942aa148ba05b27 (patch) | |
tree | c2f7dde8a9d6cef1aabc1183b8fd4cf0ff2699e7 /usr.bin/talk/display.c | |
parent | 6b0fc1fefba70fb596defe3e4b4bbea50899e48d (diff) |
NetBSD-based -Wall cleanup
Diffstat (limited to 'usr.bin/talk/display.c')
-rw-r--r-- | usr.bin/talk/display.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.bin/talk/display.c b/usr.bin/talk/display.c index f0af194d45a..52318e5e4bb 100644 --- a/usr.bin/talk/display.c +++ b/usr.bin/talk/display.c @@ -1,4 +1,4 @@ -/* $OpenBSD: display.c,v 1.4 1997/11/30 20:30:50 deraadt Exp $ */ +/* $OpenBSD: display.c,v 1.5 1998/04/28 22:13:22 pjanzen Exp $ */ /* $NetBSD: display.c,v 1.3 1994/12/09 02:14:13 jtc Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)display.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: display.c,v 1.4 1997/11/30 20:30:50 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: display.c,v 1.5 1998/04/28 22:13:22 pjanzen Exp $"; #endif /* not lint */ /* @@ -58,6 +58,7 @@ int curses_initialized = 0; * max HAS to be a function, it is called with * a argument of the form --foo at least once. */ +int max(a,b) int a, b; { @@ -69,6 +70,7 @@ max(a,b) * Display some text on somebody's window, processing some control * characters while we are at it. */ +void display(win, text, size) register xwin_t *win; register char *text; @@ -159,8 +161,10 @@ display(win, text, size) /* * Read the character at the indicated position in win */ +int readwin(win, line, col) WINDOW *win; + int line, col; { int oldline, oldcol; register int c; @@ -176,6 +180,7 @@ readwin(win, line, col) * Scroll a window, blanking out the line following the current line * so that the current position is obvious */ +void xscroll(win, flag) register xwin_t *win; int flag; |