diff options
author | Yang Tse <yangsita@gmail.com> | 2009-04-14 12:53:53 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-04-14 12:53:53 +0000 |
commit | 737707bf4bc37017ffce685dbe088a9cd359a3d4 (patch) | |
tree | 8a3c8401b05953bd1c31367e41f2cae8cb355706 /ares_gethostbyname.c | |
parent | 382dc0d71995a0b44c94cace70f317eb6ae860a3 (diff) | |
download | c-ares-737707bf4bc37017ffce685dbe088a9cd359a3d4.tar.gz c-ares-737707bf4bc37017ffce685dbe088a9cd359a3d4.tar.bz2 c-ares-737707bf4bc37017ffce685dbe088a9cd359a3d4.zip |
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.c | 4 |
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 *)∈ } 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. */ |