summaryrefslogtreecommitdiffstats
path: root/plugins/check_procs.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2026-04-08 18:26:03 +0200
committerGitHub <noreply@github.com>2026-04-08 18:26:03 +0200
commit1db493092ca6a68ff690251cc428037b54019a73 (patch)
treee11a18faf34c4d4284388b1ce99bf1aee9e44c91 /plugins/check_procs.c
parent3a6f9292f147de29b21dafa4cf9b7efce3e4cbfd (diff)
downloadmonitoring-plugins-1db493092ca6a68ff690251cc428037b54019a73.tar.gz
added CHECK_EOF to work around warnings about EOF and -1 being the same (#2254)HEADmaster
Co-authored-by: Andreas Baumann <mail@andreasbaumann.cc>
Diffstat (limited to 'plugins/check_procs.c')
-rw-r--r--plugins/check_procs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_procs.c b/plugins/check_procs.c
index 50837cb4..174dcd97 100644
--- a/plugins/check_procs.c
+++ b/plugins/check_procs.c
@@ -432,7 +432,7 @@ check_procs_config_wrapper process_arguments(int argc, char **argv) {
432 int option_index = 432 int option_index =
433 getopt_long(argc, argv, "Vvhkt:c:w:p:s:u:C:a:z:r:m:P:TX:", longopts, &option); 433 getopt_long(argc, argv, "Vvhkt:c:w:p:s:u:C:a:z:r:m:P:TX:", longopts, &option);
434 434
435 if (option_index == -1 || option_index == EOF) { 435 if (CHECK_EOF(option_index)) {
436 break; 436 break;
437 } 437 }
438 438