diff options
author | Martin Reindl <martin@cvs.openbsd.org> | 2006-12-14 10:15:10 +0000 |
---|---|---|
committer | Martin Reindl <martin@cvs.openbsd.org> | 2006-12-14 10:15:10 +0000 |
commit | 8411e7abe36eb637f1d25fa7a57142756f2226c4 (patch) | |
tree | fca9cd7635295adfea257fde9acd8159a2ef26fd /games | |
parent | 9309d7add131a01a17b3071686148f655fb83a13 (diff) |
fix some obvious mistakes to make DEBUG compile
ok otto@
Diffstat (limited to 'games')
-rw-r--r-- | games/gomoku/bdisp.c | 6 | ||||
-rw-r--r-- | games/gomoku/main.c | 6 | ||||
-rw-r--r-- | games/gomoku/pickmove.c | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/games/gomoku/bdisp.c b/games/gomoku/bdisp.c index 889de451d23..9c3555a3e54 100644 --- a/games/gomoku/bdisp.c +++ b/games/gomoku/bdisp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bdisp.c,v 1.8 2003/06/03 03:01:39 millert Exp $ */ +/* $OpenBSD: bdisp.c,v 1.9 2006/12/14 10:15:09 martin Exp $ */ /* * Copyright (c) 1994 * The Regents of the University of California. All rights reserved. @@ -35,7 +35,7 @@ #if 0 static char sccsid[] = "@(#)bdisp.c 8.2 (Berkeley) 5/3/95"; #else -static char rcsid[] = "$OpenBSD: bdisp.c,v 1.8 2003/06/03 03:01:39 millert Exp $"; +static char rcsid[] = "$OpenBSD: bdisp.c,v 1.9 2006/12/14 10:15:09 martin Exp $"; #endif #endif /* not lint */ @@ -183,7 +183,7 @@ bdisp() /* * Dump board display to a file. */ -bdump(fp) +void bdump(fp) FILE *fp; { int i, j, c; diff --git a/games/gomoku/main.c b/games/gomoku/main.c index 4089c14cad8..422efce95ad 100644 --- a/games/gomoku/main.c +++ b/games/gomoku/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.17 2004/01/16 00:13:19 espie Exp $ */ +/* $OpenBSD: main.c,v 1.18 2006/12/14 10:15:09 martin Exp $ */ /* * Copyright (c) 1994 * The Regents of the University of California. All rights reserved. @@ -41,7 +41,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)main.c 8.4 (Berkeley) 5/4/95"; #else -static char rcsid[] = "$OpenBSD: main.c,v 1.17 2004/01/16 00:13:19 espie Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.18 2006/12/14 10:15:09 martin Exp $"; #endif #endif /* not lint */ @@ -500,7 +500,7 @@ top: if (cbp->c_nframes != n) break; } - printcombo(cbp, fmtbuf); + printcombo(cbp, fmtbuf, sizeof fmtbuf); dlog(fmtbuf); } goto top; diff --git a/games/gomoku/pickmove.c b/games/gomoku/pickmove.c index 1c5191e5992..5ae93886f68 100644 --- a/games/gomoku/pickmove.c +++ b/games/gomoku/pickmove.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pickmove.c,v 1.9 2003/06/03 03:01:39 millert Exp $ */ +/* $OpenBSD: pickmove.c,v 1.10 2006/12/14 10:15:09 martin Exp $ */ /* * Copyright (c) 1994 * The Regents of the University of California. All rights reserved. @@ -35,7 +35,7 @@ #if 0 static char sccsid[] = "@(#)pickmove.c 8.2 (Berkeley) 5/3/95"; #else -static char rcsid[] = "$OpenBSD: pickmove.c,v 1.9 2003/06/03 03:01:39 millert Exp $"; +static char rcsid[] = "$OpenBSD: pickmove.c,v 1.10 2006/12/14 10:15:09 martin Exp $"; #endif #endif /* not lint */ @@ -1240,7 +1240,7 @@ sortcombo(scbpp, cbpp, fcbp) dlog(fmtbuf); str = fmtbuf; for (cpp = cbpp; cpp < cbpp + curlevel; cpp++) { - snprintf(str, fmtbuf + sizeof fmtbut - str, + snprintf(str, fmtbuf + sizeof fmtbuf - str, " %s%c", stoc((*cpp)->c_vertex), pdir[(*cpp)->c_dir]); str += strlen(str); |