diff options
Diffstat (limited to 'ares/ares_gethostbyname.c')
-rw-r--r-- | ares/ares_gethostbyname.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ares/ares_gethostbyname.c b/ares/ares_gethostbyname.c index 61fc59256..1ef25c7a5 100644 --- a/ares/ares_gethostbyname.c +++ b/ares/ares_gethostbyname.c @@ -275,12 +275,12 @@ static int fake_hostent(const char *name, int family, ares_host_callback callbac if (family == AF_INET) { - hostent.h_length = sizeof(struct in_addr); + hostent.h_length = (int)sizeof(struct in_addr); addrs[0] = (char *)∈ } else if (family == AF_INET6) { - hostent.h_length = sizeof(struct in6_addr); + hostent.h_length = (int)sizeof(struct in6_addr); addrs[0] = (char *)&in6; } /* Duplicate the name, to avoid a constness violation. */ |