mirror of
https://frontier.innolan.net/rainlance/c-ares.git
synced 2025-12-09 13:15:11 +00:00
fix compiler warning "discards qualifiers from pointer target type" in debug builds
This commit is contained in:
@ -29,7 +29,7 @@ void ares_free_hostent(struct hostent *host)
|
||||
{
|
||||
char **p;
|
||||
|
||||
free(host->h_name);
|
||||
free((char *)(host->h_name));
|
||||
for (p = host->h_aliases; *p; p++)
|
||||
free(*p);
|
||||
free(host->h_aliases);
|
||||
|
||||
Reference in New Issue
Block a user