aboutsummaryrefslogtreecommitdiff
path: root/grid.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2008-09-13 18:25:19 +0000
committerSimon Tatham <anakin@pobox.com>2008-09-13 18:25:19 +0000
commitfe1b91ac49cc2f4cd07801535dc19103a8ebeb70 (patch)
treee89b7747911378cf8387c58f50e50648a4e58469 /grid.c
parentacf5c55d355b49fec8fb5376737d606be0cd8d4f (diff)
downloadpuzzles-fe1b91ac49cc2f4cd07801535dc19103a8ebeb70.zip
puzzles-fe1b91ac49cc2f4cd07801535dc19103a8ebeb70.tar.gz
puzzles-fe1b91ac49cc2f4cd07801535dc19103a8ebeb70.tar.bz2
puzzles-fe1b91ac49cc2f4cd07801535dc19103a8ebeb70.tar.xz
Since the lack of this has caused portability issues in the past:
add "-ansi -pedantic" to the main Unix makefile, and clean up a few minor problems pointed out thereby. [originally from svn r8175]
Diffstat (limited to 'grid.c')
-rw-r--r--grid.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/grid.c b/grid.c
index 75887eb..dcc384a 100644
--- a/grid.c
+++ b/grid.c
@@ -643,8 +643,14 @@ static grid_dot *grid_dot_add_new(grid *g, int x, int y)
* Assumes g->dots has enough capacity allocated */
static grid_dot *grid_get_dot(grid *g, tree234 *dot_list, int x, int y)
{
- grid_dot test = {0, NULL, NULL, x, y};
- grid_dot *ret = find234(dot_list, &test, NULL);
+ grid_dot test, *ret;
+
+ test.order = 0;
+ test.edges = NULL;
+ test.faces = NULL;
+ test.x = x;
+ test.y = y;
+ ret = find234(dot_list, &test, NULL);
if (ret)
return ret;