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_debug_dumpdt_post_send.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/libs6dns/s6dns_debug_dumpdt_post_send.c') diff --git a/src/libs6dns/s6dns_debug_dumpdt_post_send.c b/src/libs6dns/s6dns_debug_dumpdt_post_send.c index e41d595..5e7b60c 100644 --- a/src/libs6dns/s6dns_debug_dumpdt_post_send.c +++ b/src/libs6dns/s6dns_debug_dumpdt_post_send.c @@ -1,5 +1,7 @@ /* ISC license */ +#include +#include #include #include #include @@ -9,22 +11,22 @@ int s6dns_debug_dumpdt_post_send (s6dns_engine_t const *dt, void *data) { genwrite_t *gp = data ; + size_t len ; char buf[LOCALTMN_FMT] ; - unsigned int len ; if ((*gp->put)(gp->target, "Sent query ", 11) < 11) return 0 ; { - uint16 id ; + uint16_t id ; uint16_unpack_big(dt->sa.s + 2, &id) ; len = uint16_fmt(buf, id) ; } - if ((*gp->put)(gp->target, buf, len) < (int)len) return 0 ; + if ((*gp->put)(gp->target, buf, len) < (ssize_t)len) return 0 ; if ((*gp->put)(gp->target, " - next recv deadline is ", 25) < 25) return 0 ; { localtmn_t l ; if (!localtmn_from_tain(&l, &dt->localdeadline, 0)) return 0 ; len = localtmn_fmt(buf, &l) ; } - if ((*gp->put)(gp->target, buf, len) < (int)len) return 0 ; + if ((*gp->put)(gp->target, buf, len) < (ssize_t)len) return 0 ; if ((*gp->put)(gp->target, "\n\n", 2) < 2) return 0 ; return (*gp->flush)(gp->target) ; } -- cgit v1.3.1