summaryrefslogtreecommitdiff
path: root/ares_getnameinfo.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_getnameinfo.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_getnameinfo.c')
-rw-r--r--ares_getnameinfo.c3
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 */