From 08e45dc7229d2bdf8400aca142ef661511bb72ad Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 21 Sep 2019 22:18:41 +0200 Subject: [PATCH] appease gcc const-check --- src/report.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/report.c b/src/report.c index 904fd6f14..7f0ad8dc0 100644 --- a/src/report.c +++ b/src/report.c @@ -1080,7 +1080,7 @@ static void report_region_schemes(struct stream *out, const region * r, faction } else if (num > 1) { int i; - char *rnames[MAX_SCHEMES]; + const char *rnames[MAX_SCHEMES]; for (i = 0; i != num; ++i) { char rbuf[REPORTWIDTH]; @@ -1090,7 +1090,7 @@ static void report_region_schemes(struct stream *out, const region * r, faction } report_list(f->locale, buf, sizeof(buf), num, rnames); for (i = 0; i != num; ++i) { - free(rnames[i]); + free((char *)rnames[i]); } } if (num > 0) {