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:
Ben Harris
2023-02-18 23:14:12 +00:00
parent 3c3468355f
commit 26c7f3aa28
5 changed files with 9 additions and 9 deletions

View File

@ -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;