summaryrefslogtreecommitdiffstats
path: root/snake
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>1993-12-08 08:18:22 +0000
committermycroft <mycroft@NetBSD.org>1993-12-08 08:18:22 +0000
commit088fb80644a24bae57219310201dfd40423246a1 (patch)
tree245d464bbcb7626bbe6d66e41b30e6299ffc4ab1 /snake
parent77db8b9323c1e0b90e3f21299eda85c75245d46b (diff)
downloadbsdgames-darwin-088fb80644a24bae57219310201dfd40423246a1.tar.gz
bsdgames-darwin-088fb80644a24bae57219310201dfd40423246a1.tar.zst
bsdgames-darwin-088fb80644a24bae57219310201dfd40423246a1.zip
Eliminate a compiler warning.
Diffstat (limited to 'snake')
-rw-r--r--snake/snake/move.c44
1 files changed, 22 insertions, 22 deletions
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;