summaryrefslogtreecommitdiff
path: root/ares_gethostbyaddr.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-02-23 07:55:58 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-02-23 07:55:58 +0000
commitc7c24e3de7861de77e25ef4806790823d4b32e2b (patch)
tree90a1bec46f86d966c34f5b6e7fc234299e6f57c9 /ares_gethostbyaddr.c
parent961876c001c780e4d4767a5b1a4f0fe9d3a3ecf2 (diff)
downloadc-ares-c7c24e3de7861de77e25ef4806790823d4b32e2b.tar.gz
c-ares-c7c24e3de7861de77e25ef4806790823d4b32e2b.tar.bz2
c-ares-c7c24e3de7861de77e25ef4806790823d4b32e2b.zip
typecase the bitfiddling results since we get a long and we store an int,
they may not be of the size size
Diffstat (limited to 'ares_gethostbyaddr.c')
-rw-r--r--ares_gethostbyaddr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ares_gethostbyaddr.c b/ares_gethostbyaddr.c
index 6e3e673..89b4f0a 100644
--- a/ares_gethostbyaddr.c
+++ b/ares_gethostbyaddr.c
@@ -87,10 +87,10 @@ static void next_lookup(struct addr_query *aquery)
{
case 'b':
addr = ntohl(aquery->addr.s_addr);
- a1 = addr >> 24;
- a2 = (addr >> 16) & 0xff;
- a3 = (addr >> 8) & 0xff;
- a4 = addr & 0xff;
+ a1 = (int)(addr >> 24) & 0xff;
+ a2 = (int)(addr >> 16) & 0xff;
+ a3 = (int)(addr >> 8) & 0xff;
+ a4 = (int)addr & 0xff;
sprintf(name, "%d.%d.%d.%d.in-addr.arpa", a4, a3, a2, a1);
aquery->remaining_lookups = p + 1;
ares_query(aquery->channel, name, C_IN, T_PTR, addr_callback,