Skip to content
Snippets Groups Projects
Commit b7fda8ec authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

typecast comparision between signed and unsigned

parent 3d7f4c0d
No related branches found
No related tags found
No related merge requests found
...@@ -85,7 +85,7 @@ int ares_parse_a_reply(const unsigned char *abuf, int alen, ...@@ -85,7 +85,7 @@ int ares_parse_a_reply(const unsigned char *abuf, int alen,
naliases = 0; naliases = 0;
/* Examine each answer resource record (RR) in turn. */ /* Examine each answer resource record (RR) in turn. */
for (i = 0; i < ancount; i++) for (i = 0; i < (int)ancount; i++)
{ {
/* Decode the RR up to the data field. */ /* Decode the RR up to the data field. */
status = ares_expand_name(aptr, abuf, alen, &rr_name, &len); status = ares_expand_name(aptr, abuf, alen, &rr_name, &len);
......
...@@ -66,7 +66,7 @@ int ares_parse_ptr_reply(const unsigned char *abuf, int alen, const void *addr, ...@@ -66,7 +66,7 @@ int ares_parse_ptr_reply(const unsigned char *abuf, int alen, const void *addr,
/* Examine each answer resource record (RR) in turn. */ /* Examine each answer resource record (RR) in turn. */
hostname = NULL; hostname = NULL;
for (i = 0; i < ancount; i++) for (i = 0; i < (int)ancount; i++)
{ {
/* Decode the RR up to the data field. */ /* Decode the RR up to the data field. */
status = ares_expand_name(aptr, abuf, alen, &rr_name, &len); status = ares_expand_name(aptr, abuf, alen, &rr_name, &len);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment