1
0
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:
Yang Tse
2007-01-29 20:56:27 +00:00
parent 3445be6316
commit 3c90d9d6d3
3 changed files with 4 additions and 3 deletions

View File

@ -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);