projects
/
platform
/
upstream
/
c-ares.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
961876c
)
typecase the bitfiddling results since we get a long and we store an int,
author
Daniel Stenberg
<daniel@haxx.se>
Mon, 23 Feb 2004 07:55:58 +0000
(07:55 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Mon, 23 Feb 2004 07:55:58 +0000
(07:55 +0000)
they may not be of the size size
ares_gethostbyaddr.c
patch
|
blob
|
history
diff --git
a/ares_gethostbyaddr.c
b/ares_gethostbyaddr.c
index 6e3e6737dfd8c4ef13fa4cd76d1e8b32422f3d5c..89b4f0a40c99b4a61f7bfcd454ca50fc52b2b14f 100644
(file)
--- 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,