diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-10 09:20:01 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-10 09:20:01 +0000 |
commit | 7a0f84ec90d6a7167e0be9de80b891596fa0c262 (patch) | |
tree | c0cb23b0a50fa2734286c936fbbb0dae24c2ec1f /src/clients | |
parent | 416ef5e2bf59bb2e45066a1d5d91ac677c0f48e5 (diff) | |
download | s6-dns-7a0f84ec90d6a7167e0be9de80b891596fa0c262.tar.xz |
Compiling bugfixes, small doc update
Diffstat (limited to 'src/clients')
-rw-r--r-- | src/clients/s6-dnsname.c | 5 | ||||
-rw-r--r-- | src/clients/s6dns_namescanner.c | 2 |
2 files changed, 4 insertions, 3 deletions
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 <errno.h> +#include <skalibs/uint.h> #include <skalibs/sgetopt.h> #include <skalibs/strerr2.h> #include <skalibs/buffer.h> @@ -9,7 +10,7 @@ #include <skalibs/genalloc.h> #include <skalibs/ip46.h> #include <skalibs/random.h> -#include <skalibs/s6dns.h> +#include <s6-dns/s6dns.h> #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 <s6-dns/s6dns-domain.h> -#include <s6-dns/s6dns-generic-filter.h> +#include "s6dns-generic-filter.h" unsigned int s6dns_namescanner (s6dns_domain_t *d, char const *s) { |