diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-03-12 13:44:14 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-03-12 13:44:14 +0000 |
commit | 54d4b6e74bf539930db2cafbe075416894900076 (patch) | |
tree | 29df64c4ff1eddc3c692b82556e3dde5dc2ae0ee /src/minutils/s6-logwatch.c | |
parent | 495d625add9e52b29a98c4fa2627a45d20d44849 (diff) | |
download | s6-linux-utils-54d4b6e74bf539930db2cafbe075416894900076.tar.xz |
Fix a few omissions2.3.0.0
Diffstat (limited to 'src/minutils/s6-logwatch.c')
-rw-r--r-- | src/minutils/s6-logwatch.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/minutils/s6-logwatch.c b/src/minutils/s6-logwatch.c index d522b5e..42214d7 100644 --- a/src/minutils/s6-logwatch.c +++ b/src/minutils/s6-logwatch.c @@ -1,15 +1,14 @@ /* ISC license. */ -#include <sys/types.h> #include <sys/uio.h> #include <errno.h> +#include <string.h> #include <unistd.h> #include <signal.h> #include <sys/ioctl.h> #include <sys/inotify.h> #include <skalibs/allreadwrite.h> #include <skalibs/sgetopt.h> -#include <skalibs/bytestr.h> #include <skalibs/strerr2.h> #include <skalibs/error.h> #include <skalibs/buffer.h> @@ -120,7 +119,7 @@ int main (int argc, char const *const *argv) while (i < (size_t)r) { struct inotify_event *ie = (struct inotify_event *)(iebuf + i) ; - if ((ie->wd != w) || !ie->len || str_diff(ie->name, "current")) goto cont ; + if ((ie->wd != w) || !ie->len || strcmp(ie->name, "current")) goto cont ; if (ie->mask & IN_MODIFY) { if (state) X() ; |