diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2023-11-01 11:05:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-01 11:05:50 +0100 |
commit | 6d08e1c8c96d0327a5b819dc1fbb0d5754f3e2e5 (patch) | |
tree | 575867b1d1eef4cd20215f22f9151ebb4a02c93d /plugins/check_procs.c | |
parent | 03bde80abbda6fba2225568c3285a2ff2b5445a8 (diff) | |
parent | 76d9f25cd0dbe99657baeb6fa139a1831558adae (diff) | |
download | monitoring-plugins-6d08e1c.tar.gz |
Merge branch 'master' into fix_check_mailq
Diffstat (limited to 'plugins/check_procs.c')
-rw-r--r-- | plugins/check_procs.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
153 | int expected_cols = PS_COLS - 1; | 153 | int expected_cols = PS_COLS - 1; |
154 | int warn = 0; /* number of processes in warn state */ | 154 | int warn = 0; /* number of processes in warn state */ |
155 | int crit = 0; /* number of processes in crit state */ | 155 | int crit = 0; /* number of processes in crit state */ |
156 | int i = 0, j = 0; | 156 | int i = 0; |
157 | int result = STATE_UNKNOWN; | 157 | int result = STATE_UNKNOWN; |
158 | int ret = 0; | 158 | int ret = 0; |
159 | output chld_out, chld_err; | 159 | output chld_out, chld_err; |
@@ -207,7 +207,7 @@ main (int argc, char **argv) | |||
207 | } | 207 | } |
208 | 208 | ||
209 | /* flush first line: j starts at 1 */ | 209 | /* flush first line: j starts at 1 */ |
210 | for (j = 1; j < chld_out.lines; j++) { | 210 | for (size_t j = 1; j < chld_out.lines; j++) { |
211 | input_line = chld_out.line[j]; | 211 | input_line = chld_out.line[j]; |
212 | 212 | ||
213 | if (verbose >= 3) | 213 | if (verbose >= 3) |