summaryrefslogtreecommitdiffstats
path: root/plugins/check_procs.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2023-10-16 09:19:12 (GMT)
committerGitHub <noreply@github.com>2023-10-16 09:19:12 (GMT)
commit0fb56b813d0166e6300c69d7576f80fbada5030f (patch)
treec1b1505036fdb00baba0cc17b68f46a085d17be2 /plugins/check_procs.c
parent15b4e89a42a3caf2c4da3992d698b356649665a1 (diff)
parent6972242126f1dbfb929dbd1c1582d973d2094d8a (diff)
downloadmonitoring-plugins-0fb56b813d0166e6300c69d7576f80fbada5030f.tar.gz
Merge pull request #1939 from RincewindsHat/compiler_warnings_parentheses
Fixes for compiler warning -Wparentheses
Diffstat (limited to 'plugins/check_procs.c')
-rw-r--r--plugins/check_procs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/check_procs.c b/plugins/check_procs.c
index c17c699..1637e3e 100644
--- a/plugins/check_procs.c
+++ b/plugins/check_procs.c
@@ -241,8 +241,9 @@ main (int argc, char **argv)
241 241
242 /* Ignore self */ 242 /* Ignore self */
243 if ((usepid && mypid == procpid) || 243 if ((usepid && mypid == procpid) ||
244 (!usepid && ((ret = stat_exe(procpid, &statbuf) != -1) && statbuf.st_dev == mydev && statbuf.st_ino == myino) || 244 ( ((!usepid) && ((ret = stat_exe(procpid, &statbuf) != -1) && statbuf.st_dev == mydev && statbuf.st_ino == myino)) ||
245 (ret == -1 && errno == ENOENT))) { 245 (ret == -1 && errno == ENOENT))
246 ) {
246 if (verbose >= 3) 247 if (verbose >= 3)
247 printf("not considering - is myself or gone\n"); 248 printf("not considering - is myself or gone\n");
248 continue; 249 continue;