summaryrefslogtreecommitdiff
path: root/ares_gethostbyname.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-04-14 12:53:53 (GMT)
committerYang Tse <yangsita@gmail.com>2009-04-14 12:53:53 (GMT)
commit737707bf4bc37017ffce685dbe088a9cd359a3d4 (patch)
tree8a3c8401b05953bd1c31367e41f2cae8cb355706 /ares_gethostbyname.c
parent382dc0d71995a0b44c94cace70f317eb6ae860a3 (diff)
downloadc-ares-737707bf4bc37017ffce685dbe088a9cd359a3d4.zip
c-ares-737707bf4bc37017ffce685dbe088a9cd359a3d4.tar.gz
c-ares-737707bf4bc37017ffce685dbe088a9cd359a3d4.tar.bz2
fix compiler warning: implicit conversion shortens 64-bit value into a 32-bit value
Diffstat (limited to 'ares_gethostbyname.c')
-rw-r--r--ares_gethostbyname.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ares_gethostbyname.c b/ares_gethostbyname.c
index 61fc592..1ef25c7 100644
--- a/ares_gethostbyname.c
+++ b/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 *)&in;
}
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. */