diff options
Diffstat (limited to 'src/supervision/s6-notifyoncheck.c')
-rw-r--r-- | src/supervision/s6-notifyoncheck.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) ; } |