summaryrefslogtreecommitdiff
path: root/ares_gethostbyname.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-01-29 20:56:27 +0000
committerYang Tse <yangsita@gmail.com>2007-01-29 20:56:27 +0000
commit3c90d9d6d385c91fdb9b808004fb9a8915e760fc (patch)
tree7d26ee44e55cd6ffa9d6297d6607896bde5124e7 /ares_gethostbyname.c
parent3445be63166394e6855941d1bb249e275f4f2770 (diff)
downloadc-ares-3c90d9d6d385c91fdb9b808004fb9a8915e760fc.tar.gz
c-ares-3c90d9d6d385c91fdb9b808004fb9a8915e760fc.tar.bz2
c-ares-3c90d9d6d385c91fdb9b808004fb9a8915e760fc.zip
fix compiler warning "discards qualifiers from pointer target type" in debug builds
Diffstat (limited to 'ares_gethostbyname.c')
-rw-r--r--ares_gethostbyname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ares_gethostbyname.c b/ares_gethostbyname.c
index f675c51..00d7886 100644
--- a/ares_gethostbyname.c
+++ b/ares_gethostbyname.c
@@ -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;
}