From a2177a8063d3900101331fa8b785d83a0f1134fb Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sun, 10 Apr 2016 19:58:13 +0200 Subject: [PATCH] Fix GCC warning for signed vs unsigned comparison Signed-off-by: Joachim Nilsson --- plugins/pidfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/pidfile.c b/plugins/pidfile.c index 41aa86ea..5966fe2a 100644 --- a/plugins/pidfile.c +++ b/plugins/pidfile.c @@ -29,7 +29,7 @@ static void pidfile_callback(void *UNUSED(arg), int fd, int UNUSED(events)) return; } - for (ev = (void *)ev_buf; sz > sizeof(*ev); + for (ev = (void *)ev_buf; sz > (ssize_t)sizeof(*ev); len = sizeof(*ev) + ev->len, ev = (void *)ev + len, sz -= len) { /* ev = (void *)(ev + 1) + ev->len, sz -= sizeof(*ev) + ev->len) { */ if (!ev->mask || !strstr(ev->name, ".pid"))