diff options
| author | Ben Harris <bjh21@bjh21.me.uk> | 2023-02-18 23:14:12 +0000 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2023-02-18 23:14:12 +0000 |
| commit | 26c7f3aa285a45176c940afebe3885ad2be2ed65 (patch) | |
| tree | d3e881616ae1881660e77f72d33489b34ae27e0d /signpost.c | |
| parent | 3c3468355f8cf3dd644058ab239b948f8facebfa (diff) | |
| download | puzzles-26c7f3aa285a45176c940afebe3885ad2be2ed65.zip puzzles-26c7f3aa285a45176c940afebe3885ad2be2ed65.tar.gz puzzles-26c7f3aa285a45176c940afebe3885ad2be2ed65.tar.bz2 puzzles-26c7f3aa285a45176c940afebe3885ad2be2ed65.tar.xz | |
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).
Diffstat (limited to 'signpost.c')
| -rw-r--r-- | signpost.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |