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:
@ -1031,8 +1031,8 @@ static void connect_numbers(game_state *state)
|
||||
|
||||
static int compare_heads(const void *a, const void *b)
|
||||
{
|
||||
struct head_meta *ha = (struct head_meta *)a;
|
||||
struct head_meta *hb = (struct head_meta *)b;
|
||||
const struct head_meta *ha = (const struct head_meta *)a;
|
||||
const struct head_meta *hb = (const struct head_meta *)b;
|
||||
|
||||
/* Heads with preferred colours first... */
|
||||
if (ha->preference && !hb->preference) return -1;
|
||||
@ -2421,7 +2421,7 @@ static void process_desc(char *id)
|
||||
thegame.free_params(p);
|
||||
}
|
||||
|
||||
int main(int argc, const char *argv[])
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
char *id = NULL, *desc, *aux = NULL;
|
||||
const char *err;
|
||||
|
Reference in New Issue
Block a user