mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-20 23:51:29 -07:00
Miscellaneous const fixes
These are cases where -Wcast-qual complained and the only change needed was to add or remove a "const" (or sometimes an entire cast).
This commit is contained in:
@ -551,7 +551,7 @@ static const char *validate_desc(const game_params *params, const char *desc)
|
||||
{
|
||||
const char *prob;
|
||||
game_state *st = new_game_int(params, desc, &prob);
|
||||
if (!st) return (char*)prob;
|
||||
if (!st) return prob;
|
||||
free_game(st);
|
||||
return NULL;
|
||||
}
|
||||
@ -2590,7 +2590,7 @@ static void start_soak(game_params *p, random_state *rs)
|
||||
sfree(aux);
|
||||
}
|
||||
|
||||
int main(int argc, const char *argv[])
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
bool print = false, soak = false, solved = false;
|
||||
int ret;
|
||||
|
Reference in New Issue
Block a user