diff options
Diffstat (limited to '')
| -rw-r--r-- | src/trans.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/trans.c b/src/trans.c index e267a17..67056a6 100644 --- a/src/trans.c +++ b/src/trans.c | |||
| @@ -2,9 +2,9 @@ | |||
| 2 | 2 | ||
| 3 | /* Local functions ***********************************************************/ | 3 | /* Local functions ***********************************************************/ |
| 4 | 4 | ||
| 5 | static bool read_ttables_file(); | 5 | static bool read_ttables_file(void); |
| 6 | static Cube rotate_via_compose(Trans r, Cube c, PieceFilter f); | 6 | static Cube rotate_via_compose(Trans r, Cube c, PieceFilter f); |
| 7 | static bool write_ttables_file(); | 7 | static bool write_ttables_file(void); |
| 8 | 8 | ||
| 9 | /* Tables and other data *****************************************************/ | 9 | /* Tables and other data *****************************************************/ |
| 10 | 10 | ||
| @@ -56,7 +56,7 @@ Move moves_ttable[NTRANS][NMOVES]; | |||
| 56 | /* Local functions implementation ********************************************/ | 56 | /* Local functions implementation ********************************************/ |
| 57 | 57 | ||
| 58 | static bool | 58 | static bool |
| 59 | read_ttables_file() | 59 | read_ttables_file(void) |
| 60 | { | 60 | { |
| 61 | init_env(); | 61 | init_env(); |
| 62 | 62 | ||
| @@ -135,7 +135,7 @@ rotate_via_compose(Trans r, Cube c, PieceFilter f) | |||
| 135 | } | 135 | } |
| 136 | 136 | ||
| 137 | static bool | 137 | static bool |
| 138 | write_ttables_file() | 138 | write_ttables_file(void) |
| 139 | { | 139 | { |
| 140 | init_env(); | 140 | init_env(); |
| 141 | 141 | ||
| @@ -262,7 +262,8 @@ transform_alg(Trans t, Alg *alg) | |||
| 262 | } | 262 | } |
| 263 | 263 | ||
| 264 | void | 264 | void |
| 265 | init_trans() { | 265 | init_trans(void) |
| 266 | { | ||
| 266 | static bool initialized = false; | 267 | static bool initialized = false; |
| 267 | if (initialized) | 268 | if (initialized) |
| 268 | return; | 269 | return; |
