summaryrefslogtreecommitdiff
path: root/games/gomoku/makemove.c
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1996-12-21 21:17:54 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1996-12-21 21:17:54 +0000
commit1f390af1cdcb4b0e3ee655781430f0a864788b90 (patch)
tree35260e302a86a2c0829e64d858012016e04908ae /games/gomoku/makemove.c
parent56204a319942554c696d92f4004952d6ca1683a5 (diff)
Clean up lint and -Wall output
Diffstat (limited to 'games/gomoku/makemove.c')
-rw-r--r--games/gomoku/makemove.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/games/gomoku/makemove.c b/games/gomoku/makemove.c
index d48594063cc..2a4a27da00a 100644
--- a/games/gomoku/makemove.c
+++ b/games/gomoku/makemove.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: makemove.c,v 1.1 1996/12/16 06:56:08 downsj Exp $ */
+/* $OpenBSD: makemove.c,v 1.2 1996/12/21 21:17:51 tholo Exp $ */
/*
* Copyright (c) 1994
* The Regents of the University of California. All rights reserved.
@@ -56,6 +56,7 @@ int weight[5] = { 0, 1, 7, 22, 100 };
* WIN The the winning move was just played.
* TIE The game is a tie.
*/
+int
makemove(us, mv)
int us, mv;
{
@@ -213,13 +214,14 @@ makemove(us, mv)
/*
* fix up the overlap array due to updating spot osp.
*/
+void
update_overlap(osp)
struct spotstr *osp;
{
register struct spotstr *sp, *sp1, *sp2;
register int i, f, r, r1, d, d1, n;
int a, b, bmask, bmask1;
- struct spotstr *esp;
+ struct spotstr *esp = NULL;
char *str;
for (r = 4; --r >= 0; ) { /* for each direction */