diff options
author | dholland <dholland@NetBSD.org> | 2008-01-28 07:01:01 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2008-01-28 07:01:01 +0000 |
commit | 2aac248660d4978a88dc72cc4ee5cfbd197e6735 (patch) | |
tree | 54b3b3b7d883c798b40e8216731f700706e3a405 /gomoku | |
parent | dfce1cca7e9f2a93d3246b5dba2113e20cbc447a (diff) | |
download | bsdgames-darwin-2aac248660d4978a88dc72cc4ee5cfbd197e6735.tar.gz bsdgames-darwin-2aac248660d4978a88dc72cc4ee5cfbd197e6735.tar.zst bsdgames-darwin-2aac248660d4978a88dc72cc4ee5cfbd197e6735.zip |
build with WARNS=4
Diffstat (limited to 'gomoku')
-rw-r--r-- | gomoku/pickmove.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gomoku/pickmove.c b/gomoku/pickmove.c index 98c8fa4c..1cdd7cc2 100644 --- a/gomoku/pickmove.c +++ b/gomoku/pickmove.c @@ -1,4 +1,4 @@ -/* $NetBSD: pickmove.c,v 1.12 2007/12/15 19:44:40 perry Exp $ */ +/* $NetBSD: pickmove.c,v 1.13 2008/01/28 07:01:01 dholland Exp $ */ /* * Copyright (c) 1994 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)pickmove.c 8.2 (Berkeley) 5/3/95"; #else -__RCSID("$NetBSD: pickmove.c,v 1.12 2007/12/15 19:44:40 perry Exp $"); +__RCSID("$NetBSD: pickmove.c,v 1.13 2008/01/28 07:01:01 dholland Exp $"); #endif #endif /* not lint */ @@ -1087,7 +1087,7 @@ checkframes(cbp, fcbp, osp, s, vertices) struct ovlp_info *vertices; { struct combostr *tcbp, *lcbp; - int i, n, mask, flg, verts, loop, index, fcnt; + int i, n, mask, flg, verts, loop, myindex, fcnt; union comboval cb; u_char *str; short *ip; @@ -1099,7 +1099,7 @@ checkframes(cbp, fcbp, osp, s, vertices) fcnt = cb.c.a - 2; verts = 0; loop = 0; - index = cbp->c_nframes; + myindex = cbp->c_nframes; n = (fcbp - frames) * FAREA; str = &overlap[n]; ip = &intersect[n]; @@ -1114,7 +1114,7 @@ checkframes(cbp, fcbp, osp, s, vertices) return (-1); /* fcbp is already included */ /* check for intersection of 'tcbp' with 'fcbp' */ - index--; + myindex--; mask = str[tcbp - frames]; flg = cbp->c_flg; n = i + ((flg & C_OPEN_1) != 0); @@ -1157,7 +1157,7 @@ checkframes(cbp, fcbp, osp, s, vertices) vertices->o_link = 1; vertices->o_off = (n - tcbp->c_vertex) / dd[tcbp->c_dir]; - vertices->o_frameindex = index; + vertices->o_frameindex = myindex; verts++; } } |