diff --git a/games/rain/rain.c b/games/rain/rain.c index 0129526f43b4..dd7b075c2f28 100644 --- a/games/rain/rain.c +++ b/games/rain/rain.c @@ -39,7 +39,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)rain.c 5.6 (Berkeley) 2/28/91";*/ -static char rcsid[] = "$Id: rain.c,v 1.2 1993/08/01 18:52:54 mycroft Exp $"; +static char rcsid[] = "$Id: rain.c,v 1.3 1993/12/08 08:18:22 mycroft Exp $"; #endif /* not lint */ /* @@ -64,7 +64,7 @@ static struct termio sg, old_tty; static struct sgttyb sg, old_tty; #endif -int fputchar(); +static void fputchar(); char *LL, *TE, *tgoto(); main(argc, argv) @@ -238,7 +238,7 @@ onsig() exit(0); } -static +static void fputchar(c) char c; { diff --git a/games/snake/snake/move.c b/games/snake/snake/move.c index b6859cdcbeb7..6eea0055cbf5 100644 --- a/games/snake/snake/move.c +++ b/games/snake/snake/move.c @@ -33,7 +33,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)move.c 5.8 (Berkeley) 2/28/91";*/ -static char rcsid[] = "$Id: move.c,v 1.5 1993/08/01 18:51:14 mycroft Exp $"; +static char rcsid[] = "$Id: move.c,v 1.6 1993/12/08 08:21:41 mycroft Exp $"; #endif /* not lint */ /************************************************************************* @@ -103,6 +103,27 @@ short ospeed; static char str[80]; +apr(struct point *ps, char *fmt, ...) +{ + va_list ap; + struct point p; + + va_start(ap, fmt); + p.line = ps->line+1; p.col = ps->col+1; + move(&p); + (void)vsprintf(str, fmt, ap); + pstring(str); +} + +pr(char *fmt, ...) +{ + va_list ap; + + va_start(ap, fmt); + (void)vsprintf(str, fmt, ap); + pstring(str); +} + move(sp) struct point *sp; { @@ -387,27 +408,6 @@ pch(c) } } -apr(ps, fmt, ap) - struct point *ps; - char *fmt; - va_list ap; -{ - struct point p; - - p.line = ps->line+1; p.col = ps->col+1; - move(&p); - (void)vsprintf(str, fmt, &ap); - pstring(str); -} - -pr(fmt, ap) - char *fmt; - va_list ap; -{ - (void)vsprintf(str, fmt, &ap); - pstring(str); -} - pstring(s) char *s;{ struct point z;