From c60ebd422171808ad58b936914055397bb205bef Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 12 Mar 2017 11:59:43 +0000 Subject: Adapt to skalibs-2.5.0.0 --- src/daemontools-extras/s6-tai64nlocal.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/daemontools-extras/s6-tai64nlocal.c') diff --git a/src/daemontools-extras/s6-tai64nlocal.c b/src/daemontools-extras/s6-tai64nlocal.c index 84e717a..ce97470 100644 --- a/src/daemontools-extras/s6-tai64nlocal.c +++ b/src/daemontools-extras/s6-tai64nlocal.c @@ -2,8 +2,6 @@ #include #include -#include -#include #include #include #include @@ -34,11 +32,11 @@ int main (void) size_t len ; localtmn_from_tain(&local, &a, 1) ; len = localtmn_fmt(fmt, &local) ; - if (buffer_put(buffer_1, fmt, len) < 0) + if (buffer_put(buffer_1, fmt, len) < (ssize_t)len) strerr_diefu1sys(111, "write to stdout") ; } } - if (buffer_put(buffer_1, satmp.s + p, satmp.len - p) < 0) + if (buffer_put(buffer_1, satmp.s + p, satmp.len - p) < (ssize_t)(satmp.len - p)) strerr_diefu1sys(111, "write to stdout") ; satmp.len = 0 ; } -- cgit v1.3.1