From 26c7f3aa285a45176c940afebe3885ad2be2ed65 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sat, 18 Feb 2023 23:14:12 +0000 Subject: 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). --- signpost.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'signpost.c') diff --git a/signpost.c b/signpost.c index cdc958e..97beefd 100644 --- a/signpost.c +++ b/signpost.c @@ -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; -- cgit v1.1