summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cribbage/io.c8
-rw-r--r--snake/snake/move.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/cribbage/io.c b/cribbage/io.c
index 0d795168..244ac702 100644
--- a/cribbage/io.c
+++ b/cribbage/io.c
@@ -376,9 +376,9 @@ static int Newpos = 0;
/* VARARGS1 */
msg(fmt,ap)
char *fmt;
- _VA_LIST_ ap;
+ va_list ap;
{
- (void)vsprintf(&Msgbuf[Newpos], fmt, ap);
+ (void)vsprintf(&Msgbuf[Newpos], fmt, &ap);
endmsg();
}
@@ -389,9 +389,9 @@ msg(fmt,ap)
/* VARARGS1 */
addmsg(fmt,ap)
char *fmt;
- _VA_LIST_ ap;
+ va_list ap;
{
- (void)vsprintf(&Msgbuf[Newpos], fmt, ap);
+ (void)vsprintf(&Msgbuf[Newpos], fmt, &ap);
}
/*
diff --git a/snake/snake/move.c b/snake/snake/move.c
index 95f4f3fd..cbfeaa3c 100644
--- a/snake/snake/move.c
+++ b/snake/snake/move.c
@@ -389,21 +389,21 @@ pch(c)
apr(ps, fmt, ap)
struct point *ps;
char *fmt;
- _VA_LIST_ ap;
+ va_list ap;
{
struct point p;
p.line = ps->line+1; p.col = ps->col+1;
move(&p);
- (void)vsprintf(str, fmt, ap);
+ (void)vsprintf(str, fmt, &ap);
pstring(str);
}
pr(fmt, ap)
char *fmt;
- _VA_LIST_ ap;
+ va_list ap;
{
- (void)vsprintf(str, fmt, ap);
+ (void)vsprintf(str, fmt, &ap);
pstring(str);
}