From 088fb80644a24bae57219310201dfd40423246a1 Mon Sep 17 00:00:00 2001 From: mycroft Date: Wed, 8 Dec 1993 08:18:22 +0000 Subject: Eliminate a compiler warning. --- snake/snake/move.c | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'snake') diff --git a/snake/snake/move.c b/snake/snake/move.c index b6859cdc..6eea0055 100644 --- a/snake/snake/move.c +++ b/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; -- cgit v1.2.3-56-ge451