summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ares_parse_a_reply.c2
-rw-r--r--ares_parse_ptr_reply.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ares_parse_a_reply.c b/ares_parse_a_reply.c
index 103738b..1c18b56 100644
--- a/ares_parse_a_reply.c
+++ b/ares_parse_a_reply.c
@@ -85,7 +85,7 @@ int ares_parse_a_reply(const unsigned char *abuf, int alen,
naliases = 0;
/* 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. */
status = ares_expand_name(aptr, abuf, alen, &rr_name, &len);
diff --git a/ares_parse_ptr_reply.c b/ares_parse_ptr_reply.c
index 8cb0cbc..13b3ab0 100644
--- a/ares_parse_ptr_reply.c
+++ b/ares_parse_ptr_reply.c
@@ -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. */
hostname = NULL;
- for (i = 0; i < ancount; i++)
+ for (i = 0; i < (int)ancount; i++)
{
/* Decode the RR up to the data field. */
status = ares_expand_name(aptr, abuf, alen, &rr_name, &len);