Add enough consts to keep everyone happy.
This commit is contained in:
parent
81b4504baa
commit
50bb77244e
@ -379,7 +379,7 @@ addunit(struct unittype * theunit, char *toadd, int flip)
|
||||
int
|
||||
compare(const void *item1, const void *item2)
|
||||
{
|
||||
return strcmp(*(const char **) item1, *(const char **) item2);
|
||||
return strcmp(*(const char * const *)item1, *(const char * const *)item2);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user