aboutsummaryrefslogtreecommitdiff
path: root/filling.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2018-04-25 19:24:06 +0100
committerSimon Tatham <anakin@pobox.com>2018-04-25 19:24:06 +0100
commita1663d6650053eee5e43a1267a05578a920521da (patch)
tree9346df967176dbfdb862532d2b28163e93db2c14 /filling.c
parent441b11b310a17dbf7751f4c77fe69ca729b0fffb (diff)
downloadpuzzles-a1663d6650053eee5e43a1267a05578a920521da.zip
puzzles-a1663d6650053eee5e43a1267a05578a920521da.tar.gz
puzzles-a1663d6650053eee5e43a1267a05578a920521da.tar.bz2
puzzles-a1663d6650053eee5e43a1267a05578a920521da.tar.xz
C89 build fixes.
Recent changes introduced a couple of non-C89-compatible mixed declarations and code.
Diffstat (limited to 'filling.c')
-rw-r--r--filling.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/filling.c b/filling.c
index db6f95d..37090a0 100644
--- a/filling.c
+++ b/filling.c
@@ -1289,10 +1289,10 @@ static const char *validate_desc(const game_params *params, const char *desc)
static key_label *game_request_keys(const game_params *params, int *nkeys)
{
+ int i;
key_label *keys = snewn(11, key_label);
- *nkeys = 11;
- int i;
+ *nkeys = 11;
for(i = 0; i < 10; ++i)
{