X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/d8fa223c0f1a18e94c8d1fbb1f87cfd6f933504b..7a8dfea2e7d0ef0ae8710f86269f90e60aba71cd:/unfinished/group.c diff --git a/unfinished/group.c b/unfinished/group.c index 142654c..3d6e839 100644 --- a/unfinished/group.c +++ b/unfinished/group.c @@ -660,7 +660,7 @@ done for (i = 1; i < w; i++) for (j = 1; j < w; j++) indices[k++] = i*w+j; - shuffle(indices, k, sizeof(indices), rs); + shuffle(indices, k, sizeof(*indices), rs); for (i = 0; i < k; i++) { memcpy(soln2, grid, a); @@ -1316,8 +1316,8 @@ static void game_free_drawstate(drawing *dr, game_drawstate *ds) sfree(ds); } -void draw_tile(drawing *dr, game_drawstate *ds, int x, int y, long tile, - long pencil, long error) +static void draw_tile(drawing *dr, game_drawstate *ds, int x, int y, long tile, + long pencil, long error) { int w = ds->w /* , a = w*w */; int tx, ty, tw, th;