diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-05-01 18:41:48 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-05-01 18:49:11 +0200 |
| commit | 1d0943fafdb3c547965917eb4dfcb4d6445461a4 (patch) | |
| tree | c924a58f9caa5d61095af780afcb46ff3a0deee9 /src/moves.c | |
| parent | bb689c922e2b34f6f803a6593190ba5f6993f8c5 (diff) | |
| download | nissy-classic-1d0943fafdb3c547965917eb4dfcb4d6445461a4.tar.gz nissy-classic-1d0943fafdb3c547965917eb4dfcb4d6445461a4.zip | |
Added void in function prototypes and declarations
Diffstat (limited to 'src/moves.c')
| -rw-r--r-- | src/moves.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/moves.c b/src/moves.c index 02880ca..955e8cf 100644 --- a/src/moves.c +++ b/src/moves.c | |||
| @@ -4,8 +4,8 @@ | |||
| 4 | 4 | ||
| 5 | static Cube apply_move_cubearray(Move m, Cube cube, PieceFilter f); | 5 | static Cube apply_move_cubearray(Move m, Cube cube, PieceFilter f); |
| 6 | static void cleanup_aux(Alg *alg, Alg *ret, bool inv); | 6 | static void cleanup_aux(Alg *alg, Alg *ret, bool inv); |
| 7 | static bool read_mtables_file(); | 7 | static bool read_mtables_file(void); |
| 8 | static bool write_mtables_file(); | 8 | static bool write_mtables_file(void); |
| 9 | 9 | ||
| 10 | /* Tables and other data *****************************************************/ | 10 | /* Tables and other data *****************************************************/ |
| 11 | 11 | ||
| @@ -342,7 +342,7 @@ cleanup_aux(Alg *alg, Alg *ret, bool inv) | |||
| 342 | } | 342 | } |
| 343 | 343 | ||
| 344 | static bool | 344 | static bool |
| 345 | read_mtables_file() | 345 | read_mtables_file(void) |
| 346 | { | 346 | { |
| 347 | init_env(); | 347 | init_env(); |
| 348 | 348 | ||
| @@ -391,7 +391,7 @@ read_mtables_file() | |||
| 391 | } | 391 | } |
| 392 | 392 | ||
| 393 | static bool | 393 | static bool |
| 394 | write_mtables_file() | 394 | write_mtables_file(void) |
| 395 | { | 395 | { |
| 396 | init_env(); | 396 | init_env(); |
| 397 | 397 | ||
| @@ -440,7 +440,8 @@ write_mtables_file() | |||
| 440 | } | 440 | } |
| 441 | 441 | ||
| 442 | void | 442 | void |
| 443 | init_moves() { | 443 | init_moves(void) |
| 444 | { | ||
| 444 | static bool initialized = false; | 445 | static bool initialized = false; |
| 445 | if (initialized) | 446 | if (initialized) |
| 446 | return; | 447 | return; |
