diff options
author | Yang Tse <yangsita@gmail.com> | 2007-01-29 20:56:27 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-01-29 20:56:27 +0000 |
commit | 3c90d9d6d385c91fdb9b808004fb9a8915e760fc (patch) | |
tree | 7d26ee44e55cd6ffa9d6297d6607896bde5124e7 /ares_getnameinfo.c | |
parent | 3445be63166394e6855941d1bb249e275f4f2770 (diff) | |
download | c-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_getnameinfo.c')
-rw-r--r-- | ares_getnameinfo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ares_getnameinfo.c b/ares_getnameinfo.c index 73e537a..71cf41d 100644 --- a/ares_getnameinfo.c +++ b/ares_getnameinfo.c @@ -220,7 +220,8 @@ static void nameinfo_callback(void *arg, int status, struct hostent *host) *end = 0; } } - niquery->callback(niquery->arg, ARES_SUCCESS, host->h_name, service); + niquery->callback(niquery->arg, ARES_SUCCESS, (char *)(host->h_name), + service); return; } /* We couldn't find the host, but it's OK, we can use the IP */ |