diff options
| author | Simon Tatham <anakin@pobox.com> | 2011-05-04 18:41:21 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2011-05-04 18:41:21 +0000 |
| commit | 89bfecaa5aa39469a3e368d44f517aff5c904354 (patch) | |
| tree | 13c801bb71dc7dc7a23b98c80d6d99858dd5a6d3 /loopy.c | |
| parent | e7b2a9dd8d8915802fb69ce2242b1f913b7f3172 (diff) | |
| download | puzzles-89bfecaa5aa39469a3e368d44f517aff5c904354.zip puzzles-89bfecaa5aa39469a3e368d44f517aff5c904354.tar.gz puzzles-89bfecaa5aa39469a3e368d44f517aff5c904354.tar.bz2 puzzles-89bfecaa5aa39469a3e368d44f517aff5c904354.tar.xz | |
Portability fixes, mostly from James for Palm purposes. Mostly
additions of missing 'static' and explicit 'void' in parameter lists,
plus one or two other things like explicitly casting chars in variadic
argument lists to int and using DBL_MAX if HUGE_VAL isn't available.
[originally from svn r9166]
Diffstat (limited to 'loopy.c')
| -rw-r--r-- | loopy.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -201,7 +201,7 @@ static char const diffchars[] = DIFFLIST(ENCODE); SOLVERLIST(SOLVER_FN_DECL) static int (*(solver_fns[]))(solver_state *) = { SOLVERLIST(SOLVER_FN) }; static int const solver_diffs[] = { SOLVERLIST(SOLVER_DIFF) }; -const int NUM_SOLVERS = sizeof(solver_diffs)/sizeof(*solver_diffs); +static const int NUM_SOLVERS = sizeof(solver_diffs)/sizeof(*solver_diffs); struct game_params { int w, h; @@ -1901,7 +1901,7 @@ static char *new_game_desc(game_params *params, random_state *rs, if (grid_desc) { retval = snewn(strlen(grid_desc) + 1 + strlen(game_desc) + 1, char); - sprintf(retval, "%s%c%s", grid_desc, GRID_DESC_SEP, game_desc); + sprintf(retval, "%s%c%s", grid_desc, (int)GRID_DESC_SEP, game_desc); sfree(grid_desc); sfree(game_desc); } else { |