]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
fix warnings from iOS build of dig
authorRay Bellis <ray@isc.org>
Tue, 4 Jul 2017 10:51:36 +0000 (11:51 +0100)
committerRay Bellis <ray@isc.org>
Tue, 4 Jul 2017 10:58:29 +0000 (11:58 +0100)
(cherry picked from commit 03a4e4381e89c5e0e5e5e7436cb0ed7cce5d4513)

bin/dig/dighost.c

index ef94e20662b6f7898ec4c6985313bb5e27060d00..b3deb5a0a1d93a13dedd24138147191792fb4899 100644 (file)
@@ -446,7 +446,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);
@@ -457,7 +457,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);