aboutsummaryrefslogtreecommitdiff
path: root/unequal.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 /unequal.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 'unequal.c')
-rw-r--r--unequal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unequal.c b/unequal.c
index dd7656e..592c0be 100644
--- a/unequal.c
+++ b/unequal.c
@@ -1282,12 +1282,12 @@ fail:
static key_label *game_request_keys(const game_params *params, int *nkeys)
{
+ int i;
int order = params->order;
char off = (order > 9) ? '0' : '1';
key_label *keys = snewn(order + 1, key_label);
*nkeys = order + 1;
- int i;
for(i = 0; i < order; i++) {
if (i==10) off = 'a'-10;
keys[i].button = i + off;