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);
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;