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 a4b39c6ab8
commit db22c83031
3 changed files with 4 additions and 3 deletions

View File

@@ -239,7 +239,7 @@ static int fake_hostent(const char *name, int family, ares_host_callback callbac
hostent.h_addr_list = addrs;
callback(arg, ARES_SUCCESS, &hostent);
free(hostent.h_name);
free((char *)(hostent.h_name));
return 1;
}