summaryrefslogtreecommitdiffstats
path: root/gomoku/bdinit.c
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>1997-10-10 13:36:01 +0000
committerlukem <lukem@NetBSD.org>1997-10-10 13:36:01 +0000
commit3936117409cf27503dff2c5d4d2ba20840a85873 (patch)
tree36799758f37408f4211a1a72c734889dc0eac7fe /gomoku/bdinit.c
parent34ef7ac7fd8bd4c426cd292ac4eb658d67867eab (diff)
downloadbsdgames-darwin-3936117409cf27503dff2c5d4d2ba20840a85873.tar.gz
bsdgames-darwin-3936117409cf27503dff2c5d4d2ba20840a85873.tar.zst
bsdgames-darwin-3936117409cf27503dff2c5d4d2ba20840a85873.zip
WARNSify
Diffstat (limited to 'gomoku/bdinit.c')
-rw-r--r--gomoku/bdinit.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/gomoku/bdinit.c b/gomoku/bdinit.c
index dcbbcaca..2a803297 100644
--- a/gomoku/bdinit.c
+++ b/gomoku/bdinit.c
@@ -1,4 +1,4 @@
-/* $NetBSD: bdinit.c,v 1.3 1997/01/03 01:35:24 cgd Exp $ */
+/* $NetBSD: bdinit.c,v 1.4 1997/10/10 13:36:01 lukem Exp $ */
/*
* Copyright (c) 1994
@@ -36,23 +36,25 @@
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "from: @(#)bdinit.c 8.2 (Berkeley) 5/3/95";
#else
-static char rcsid[] = "$NetBSD: bdinit.c,v 1.3 1997/01/03 01:35:24 cgd Exp $";
+__RCSID("$NetBSD: bdinit.c,v 1.4 1997/10/10 13:36:01 lukem Exp $");
#endif
#endif /* not lint */
#include <string.h>
#include "gomoku.h"
+void
bdinit(bp)
struct spotstr *bp;
{
- register int i, j, r;
- register struct spotstr *sp;
- register struct combostr *cbp;
+ int i, j, r;
+ struct spotstr *sp;
+ struct combostr *cbp;
movenum = 1;
@@ -173,11 +175,12 @@ bdinit(bp)
* As pieces are played, it can make frames not overlap if there are no
* common open spaces shared between the two frames.
*/
+void
init_overlap()
{
- register struct spotstr *sp1, *sp2;
- register struct combostr *cbp;
- register int i, f, r, n, d1, d2;
+ struct spotstr *sp1, *sp2;
+ struct combostr *cbp;
+ int i, f, r, n, d1, d2;
int mask, bmask, vertex, s;
u_char *str;
short *ip;