diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2021-08-04 11:24:03 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2021-08-04 11:24:03 +0000 |
commit | 29f70f35a48241eef0a690a00d5211f487972cba (patch) | |
tree | 7153e8f6623aed91a7d98a4961730bd161ac8a1a /src/libs6dns/s6dns_resolveq_aaaaa.c | |
parent | ffed76f91e3623f40d1ebffffc0bc728722c84f5 (diff) | |
download | s6-dns-29f70f35a48241eef0a690a00d5211f487972cba.tar.xz |
Adapt to skalibs-2.11
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libs6dns/s6dns_resolveq_aaaaa.c')
-rw-r--r-- | src/libs6dns/s6dns_resolveq_aaaaa.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libs6dns/s6dns_resolveq_aaaaa.c b/src/libs6dns/s6dns_resolveq_aaaaa.c index fe564ae..73e5966 100644 --- a/src/libs6dns/s6dns_resolveq_aaaaa.c +++ b/src/libs6dns/s6dns_resolveq_aaaaa.c @@ -15,19 +15,19 @@ static int addit (genalloc *ips, char const *s, size_t len, int is6) { - size_t base = genalloc_len(ip46full_t, ips) ; + size_t base = genalloc_len(ip46full, ips) ; size_t n = len >> (is6 ? 4 : 2) ; - ip46full_t *p ; - if (!genalloc_readyplus(ip46full_t, ips, n)) return 0 ; - p = genalloc_s(ip46full_t, ips) + base ; + ip46full *p ; + if (!genalloc_readyplus(ip46full, ips, n)) return 0 ; + p = genalloc_s(ip46full, ips) + base ; for (size_t i = 0 ; i < n ; i++) if (is6) ip46full_from_ip6(p + i, s + (i << 4)) ; else ip46full_from_ip4(p + i, s + (i << 2)) ; - genalloc_setlen(ip46full_t, ips, base + n) ; + genalloc_setlen(ip46full, ips, base + n) ; return 1 ; } -int s6dns_resolveq_aaaaa_r (genalloc *ips, char const *name, size_t len, s6dns_rci_t const *rci, s6dns_debughook_t const *dbh, tain_t const *deadline, tain_t *stamp) +int s6dns_resolveq_aaaaa_r (genalloc *ips, char const *name, size_t len, s6dns_rci_t const *rci, s6dns_debughook_t const *dbh, tain const *deadline, tain *stamp) { s6dns_engine_t dtl[rci->rulesnum << 1] ; stralloc data = STRALLOC_ZERO ; |