From ff147a1493759c0662912564c0ecd26f59590322 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 8 Jun 2022 09:59:01 +0000 Subject: Prepare for 2.11.1.1; adapt to skalibs-2.12.0.0 Signed-off-by: Laurent Bercot --- src/supervision/s6-notifyoncheck.c | 2 +- src/supervision/s6-supervise.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/supervision') diff --git a/src/supervision/s6-notifyoncheck.c b/src/supervision/s6-notifyoncheck.c index a4d0ab1..1be61d2 100644 --- a/src/supervision/s6-notifyoncheck.c +++ b/src/supervision/s6-notifyoncheck.c @@ -36,7 +36,7 @@ static inline int read_uint (char const *file, unsigned int *fd) { char buf[UINT_FMT + 1] ; ssize_t r = openreadnclose_nb(file, buf, UINT_FMT) ; - if (r < 0) return -1 ; + if (r == -1) return -1 ; buf[byte_chr(buf, r, '\n')] = 0 ; return !!uint0_scan(buf, fd) ; } diff --git a/src/supervision/s6-supervise.c b/src/supervision/s6-supervise.c index cc6779a..2060cac 100644 --- a/src/supervision/s6-supervise.c +++ b/src/supervision/s6-supervise.c @@ -82,7 +82,7 @@ static inline void announce (void) static int read_file (char const *file, char *buf, size_t n) { ssize_t r = openreadnclose_nb(file, buf, n) ; - if (r < 0) + if (r == -1) { if (errno != ENOENT) strerr_warnwu2sys("open ", file) ; return 0 ; -- cgit v1.3.1