From 7a0f84ec90d6a7167e0be9de80b891596fa0c262 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 10 Dec 2014 09:20:01 +0000 Subject: Compiling bugfixes, small doc update --- src/clients/s6-dnsname.c | 5 +++-- src/clients/s6dns_namescanner.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src/clients') diff --git a/src/clients/s6-dnsname.c b/src/clients/s6-dnsname.c index d65da3a..fe5ab9a 100644 --- a/src/clients/s6-dnsname.c +++ b/src/clients/s6-dnsname.c @@ -1,6 +1,7 @@ /* ISC license. */ #include +#include #include #include #include @@ -9,7 +10,7 @@ #include #include #include -#include +#include #define USAGE "s6-dnsname [ -4 | -6 ] [ -r ] [ -t timeout ] ip" #define dieusage() strerr_dieusage(100, USAGE) @@ -66,7 +67,7 @@ int main (int argc, char const *const *argv) char buf[S6DNS_FMT_DOMAINLIST(genalloc_len(s6dns_domain_t, &ds))] ; unsigned int len = s6dns_fmt_domainlist(buf, S6DNS_FMT_DOMAINLIST(genalloc_len(s6dns_domain_t, &ds)), genalloc_s(s6dns_domain_t, &ds), genalloc_len(s6dns_domain_t, &ds), "\n", 1) ; if (!len) strerr_diefu1sys(111, "format result") ; - if (buffer_putalign(buffer_1, buf, len) < 0) goto err ; + if (buffer_put(buffer_1, buf, len) < 0) goto err ; } if (buffer_putflush(buffer_1, "\n", 1) < 0) goto err ; return 0 ; diff --git a/src/clients/s6dns_namescanner.c b/src/clients/s6dns_namescanner.c index b23fb3d..136b1e8 100644 --- a/src/clients/s6dns_namescanner.c +++ b/src/clients/s6dns_namescanner.c @@ -1,7 +1,7 @@ /* ISC license. */ #include -#include +#include "s6dns-generic-filter.h" unsigned int s6dns_namescanner (s6dns_domain_t *d, char const *s) { -- cgit v1.2.3