diff options
author | mycroft <mycroft@NetBSD.org> | 1993-04-19 10:27:26 +0000 |
---|---|---|
committer | mycroft <mycroft@NetBSD.org> | 1993-04-19 10:27:26 +0000 |
commit | 6da45b05106ee89e5b935d4efb1909f525b25986 (patch) | |
tree | 713043b8039f7817cfd64da2638a2727beb8948b | |
parent | 225aeae6d8220143cb24ffcbe7c1ca2941643670 (diff) | |
download | bsdgames-darwin-6da45b05106ee89e5b935d4efb1909f525b25986.tar.gz bsdgames-darwin-6da45b05106ee89e5b935d4efb1909f525b25986.tar.zst bsdgames-darwin-6da45b05106ee89e5b935d4efb1909f525b25986.zip |
Fix bug I introduced.
-rw-r--r-- | cribbage/io.c | 8 | ||||
-rw-r--r-- | snake/snake/move.c | 8 |
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); } |