From 3f9536c5cc9ed6659ad2514859bd1716cbf7b26b Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 12 Jan 2017 15:35:29 +0000 Subject: Types fix, first pass. Some places marked XXX for the skalibs API change. --- src/libs6dns/s6dns_resolvenoq_aaaaa.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/libs6dns/s6dns_resolvenoq_aaaaa.c') diff --git a/src/libs6dns/s6dns_resolvenoq_aaaaa.c b/src/libs6dns/s6dns_resolvenoq_aaaaa.c index b280fe0..d10b20b 100644 --- a/src/libs6dns/s6dns_resolvenoq_aaaaa.c +++ b/src/libs6dns/s6dns_resolvenoq_aaaaa.c @@ -1,5 +1,6 @@ /* ISC license. */ +#include #include #include #include @@ -35,9 +36,9 @@ int s6dns_resolvenoq_aaaaa_r (genalloc *ips, char const *name, unsigned int len, return -1 ; } { - unsigned int n = genalloc_len(ip46_t, ips) ; int e = (!!sa[0].len << 1) | !!sa[1].len ; - register unsigned int i = 0 ; + size_t n = genalloc_len(ip46_t, ips) ; + register size_t i = 0 ; for (; i < (sa[0].len >> 4) ; i++) ip46_from_ip6(genalloc_s(ip46_t, ips) + n++, sa[0].s + (i << 4)) ; for (i = 0 ; i < (sa[1].len >> 2) ; i++) -- cgit v1.2.3