=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/talk/display.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- src/usr.bin/talk/display.c 1997/11/30 20:30:50 1.4 +++ src/usr.bin/talk/display.c 1998/04/28 22:13:22 1.5 @@ -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 @@ * 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 @@ * 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 @@ /* * 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 @@ * 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;