forked from github/server
appease gcc const-check
This commit is contained in:
parent
e4099bf17e
commit
08e45dc722
|
@ -1080,7 +1080,7 @@ static void report_region_schemes(struct stream *out, const region * r, faction
|
||||||
}
|
}
|
||||||
else if (num > 1) {
|
else if (num > 1) {
|
||||||
int i;
|
int i;
|
||||||
char *rnames[MAX_SCHEMES];
|
const char *rnames[MAX_SCHEMES];
|
||||||
|
|
||||||
for (i = 0; i != num; ++i) {
|
for (i = 0; i != num; ++i) {
|
||||||
char rbuf[REPORTWIDTH];
|
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);
|
report_list(f->locale, buf, sizeof(buf), num, rnames);
|
||||||
for (i = 0; i != num; ++i) {
|
for (i = 0; i != num; ++i) {
|
||||||
free(rnames[i]);
|
free((char *)rnames[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (num > 0) {
|
if (num > 0) {
|
||||||
|
|
Loading…
Reference in New Issue