From 07f9c438f31de7a280e43c4196a32d200ad41fbe Mon Sep 17 00:00:00 2001 From: RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> Date: Thu, 19 Oct 2023 12:10:55 +0200 Subject: Fixes for -Wsign-compare --- plugins/check_procs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/check_procs.c') diff --git a/plugins/check_procs.c b/plugins/check_procs.c index 1637e3e3..6e3feaec 100644 --- a/plugins/check_procs.c +++ b/plugins/check_procs.c @@ -153,7 +153,7 @@ main (int argc, char **argv) int expected_cols = PS_COLS - 1; int warn = 0; /* number of processes in warn state */ int crit = 0; /* number of processes in crit state */ - int i = 0, j = 0; + int i = 0; int result = STATE_UNKNOWN; int ret = 0; output chld_out, chld_err; @@ -207,7 +207,7 @@ main (int argc, char **argv) } /* flush first line: j starts at 1 */ - for (j = 1; j < chld_out.lines; j++) { + for (size_t j = 1; j < chld_out.lines; j++) { input_line = chld_out.line[j]; if (verbose >= 3) -- cgit v1.2.3-74-g34f1