summary refs log tree commit diff
path: root/src/minutils/s6-logwatch.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-08-10 17:56:42 +0000
committerLaurent Bercot <ska@appnovation.com>2021-08-10 17:56:42 +0000
commit76a04a720f7c5a366b88fe2b1727e47103ee796c (patch)
tree095607d09a95a48cedece6a4e774ad8838c2356e /src/minutils/s6-logwatch.c
parent8d37673c24ee9c30d5a78a30671e9598b0f5321d (diff)
downloads6-linux-utils-76a04a720f7c5a366b88fe2b1727e47103ee796c.tar.gz
s6-linux-utils-76a04a720f7c5a366b88fe2b1727e47103ee796c.tar.xz
s6-linux-utils-76a04a720f7c5a366b88fe2b1727e47103ee796c.zip
Prepare for 2.5.1.6 ; adapt to skalibs-2.11.0.0
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/minutils/s6-logwatch.c')
-rw-r--r--src/minutils/s6-logwatch.c4
1 files changed, 2 insertions, 2 deletions
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") ;