From 76a04a720f7c5a366b88fe2b1727e47103ee796c Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 10 Aug 2021 17:56:42 +0000 Subject: Prepare for 2.5.1.6 ; adapt to skalibs-2.11.0.0 Signed-off-by: Laurent Bercot --- src/minutils/s6-logwatch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/minutils/s6-logwatch.c') diff --git a/src/minutils/s6-logwatch.c b/src/minutils/s6-logwatch.c index 28739af..a8675e1 100644 --- a/src/minutils/s6-logwatch.c +++ b/src/minutils/s6-logwatch.c @@ -110,7 +110,7 @@ int main (int argc, char const *const *argv) unsigned int maxlen = 4096 ; PROG = "s6-logwatch" ; { - subgetopt_t l = SUBGETOPT_ZERO ; + subgetopt l = SUBGETOPT_ZERO ; for (;;) { int opt = subgetopt_r(argc, argv, "m:", &l) ; @@ -142,7 +142,7 @@ int main (int argc, char const *const *argv) state = B_WAITING ; } else state = B_READING ; - if (sig_ignore(SIGPIPE) == -1) strerr_diefu1sys(111, "sig_ignore(SIGPIPE)") ; + if (!sig_ignore(SIGPIPE)) strerr_diefu1sys(111, "sig_ignore(SIGPIPE)") ; if (state == B_READING) { if (!readit(fd)) strerr_diefu3sys(111, "read from ", dir, "/current") ; -- cgit v1.3.1