aboutsummaryrefslogtreecommitdiff
path: root/lightup.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2018-11-13 22:06:19 +0000
committerSimon Tatham <anakin@pobox.com>2018-11-13 22:06:19 +0000
commitdb3b531e2cab765a00475054d2e9046c9d0437d3 (patch)
treef029f201ad3dec7ba0dac6e1c18eb1ed4da98c4c /lightup.c
parent47cec547e59ac8c5012f6091394dcb4304d64fc3 (diff)
downloadpuzzles-db3b531e2cab765a00475054d2e9046c9d0437d3.zip
puzzles-db3b531e2cab765a00475054d2e9046c9d0437d3.tar.gz
puzzles-db3b531e2cab765a00475054d2e9046c9d0437d3.tar.bz2
puzzles-db3b531e2cab765a00475054d2e9046c9d0437d3.tar.xz
Add missing 'static' to game-internal declarations.
Another thing I spotted while trawling the whole source base was that a couple of games had omitted 'static' on a lot of their internal functions. Checking with nm, there turned out to be quite a few more than I'd spotted by eye, so this should fix them all. Also added one missing 'const', on the lookup table nbits[] in Tracks.
Diffstat (limited to 'lightup.c')
-rw-r--r--lightup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lightup.c b/lightup.c
index 67916e4..90811d5 100644
--- a/lightup.c
+++ b/lightup.c
@@ -179,7 +179,7 @@ static void get_surrounds(const game_state *state, int ox, int oy,
#define DEFAULT_PRESET 0
-const struct game_params lightup_presets[] = {
+static const struct game_params lightup_presets[] = {
{ 7, 7, 20, SYMM_ROT4, 0 },
{ 7, 7, 20, SYMM_ROT4, 1 },
{ 7, 7, 20, SYMM_ROT4, 2 },