diff options
| author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-10-19 12:10:55 +0200 |
|---|---|---|
| committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-10-19 12:10:55 +0200 |
| commit | 07f9c438f31de7a280e43c4196a32d200ad41fbe (patch) | |
| tree | 642bd4478a70665df23b83cb7b48770c3020c570 /lib/utils_cmd.c | |
| parent | 47cb10013e6935bb6cdf470925ea5a5f74464646 (diff) | |
| download | monitoring-plugins-07f9c438f31de7a280e43c4196a32d200ad41fbe.tar.gz | |
Fixes for -Wsign-compare
Diffstat (limited to 'lib/utils_cmd.c')
| -rw-r--r-- | lib/utils_cmd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/utils_cmd.c b/lib/utils_cmd.c index cfb2073c..7957ec14 100644 --- a/lib/utils_cmd.c +++ b/lib/utils_cmd.c | |||
| @@ -390,13 +390,12 @@ cmd_file_read ( char *filename, output *out, int flags) | |||
| 390 | void | 390 | void |
| 391 | timeout_alarm_handler (int signo) | 391 | timeout_alarm_handler (int signo) |
| 392 | { | 392 | { |
| 393 | size_t i; | ||
| 394 | if (signo == SIGALRM) { | 393 | if (signo == SIGALRM) { |
| 395 | printf (_("%s - Plugin timed out after %d seconds\n"), | 394 | printf (_("%s - Plugin timed out after %d seconds\n"), |
| 396 | state_text(timeout_state), timeout_interval); | 395 | state_text(timeout_state), timeout_interval); |
| 397 | 396 | ||
| 398 | long maxfd = mp_open_max(); | 397 | long maxfd = mp_open_max(); |
| 399 | if(_cmd_pids) for(i = 0; i < maxfd; i++) { | 398 | if(_cmd_pids) for(long int i = 0; i < maxfd; i++) { |
| 400 | if(_cmd_pids[i] != 0) kill(_cmd_pids[i], SIGKILL); | 399 | if(_cmd_pids[i] != 0) kill(_cmd_pids[i], SIGKILL); |
| 401 | } | 400 | } |
| 402 | 401 | ||
