From bfb96a9bb81db670abac20a70c43d8e852973eca Mon Sep 17 00:00:00 2001 From: Ray Bellis Date: Tue, 4 Jul 2017 11:51:36 +0100 Subject: [PATCH] fix warnings from iOS build of dig (cherry picked from commit 03a4e4381e89c5e0e5e5e7436cb0ed7cce5d4513) --- bin/dig/dighost.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/dig/dighost.c b/bin/dig/dighost.c index 6f35540945..4aa5eb009d 100644 --- a/bin/dig/dighost.c +++ b/bin/dig/dighost.c @@ -458,7 +458,7 @@ hex_dump(isc_buffer_t *b) { * ISC_R_NOSPACE if that would advance p past 'end'. */ static isc_result_t -append(const char *text, int len, char **p, char *end) { +append(const char *text, size_t len, char **p, char *end) { if (len > end - *p) return (ISC_R_NOSPACE); memmove(*p, text, len); @@ -469,7 +469,7 @@ append(const char *text, int len, char **p, char *end) { static isc_result_t reverse_octets(const char *in, char **p, char *end) { const char *dot = strchr(in, '.'); - int len; + size_t len; if (dot != NULL) { isc_result_t result; result = reverse_octets(dot + 1, p, end);