From aaea6322e9e765969f452764e51ca1ddd9783264 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 9 Aug 2021 23:42:35 +0000 Subject: skalibs-2.11.0.0 API change Signed-off-by: Laurent Bercot --- src/libs6/s6-ftrigrd.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/libs6/s6-ftrigrd.c') diff --git a/src/libs6/s6-ftrigrd.c b/src/libs6/s6-ftrigrd.c index 0ecf398..e8affd6 100644 --- a/src/libs6/s6-ftrigrd.c +++ b/src/libs6/s6-ftrigrd.c @@ -8,7 +8,6 @@ #include #include -#include #include #include #include @@ -25,6 +24,8 @@ #include "ftrig1.h" #include +#include + #define FTRIGRD_MAXREADS 32 #define FTRIGRD_BUFSIZE 17 @@ -197,10 +198,10 @@ int main (void) if (ndelay_on(0) < 0) strerr_diefu2sys(111, "ndelay_on ", "0") ; if (ndelay_on(1) < 0) strerr_diefu2sys(111, "ndelay_on ", "1") ; - if (sig_ignore(SIGPIPE) < 0) strerr_diefu1sys(111, "ignore SIGPIPE") ; + if (!sig_ignore(SIGPIPE)) strerr_diefu1sys(111, "ignore SIGPIPE") ; { - tain_t deadline ; + tain deadline ; tain_now_set_stopwatch_g() ; tain_addsec_g(&deadline, 2) ; if (!textclient_server_01x_init_g(FTRIGR_BANNER1, FTRIGR_BANNER1_LEN, FTRIGR_BANNER2, FTRIGR_BANNER2_LEN, &deadline)) -- cgit v1.2.3