summaryrefslogtreecommitdiffstats
path: root/plugins/check_disk.c
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2026-01-23 08:57:19 +0100
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2026-04-08 18:17:06 +0200
commitaa155267bf366ba779ae5ec7fb033c28b54b266e (patch)
treee11a18faf34c4d4284388b1ce99bf1aee9e44c91 /plugins/check_disk.c
parent3a6f9292f147de29b21dafa4cf9b7efce3e4cbfd (diff)
downloadmonitoring-plugins-aa155267.tar.gz
added CHECK_EOF to work around warnings about EOF and -1 being the same
Diffstat (limited to 'plugins/check_disk.c')
-rw-r--r--plugins/check_disk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index 73fe815e..e773e56c 100644
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
@@ -448,7 +448,7 @@ check_disk_config_wrapper process_arguments(int argc, char **argv) {
448 int option_index = getopt_long( 448 int option_index = getopt_long(
449 argc, argv, "+?VqhvefCt:c:w:K:W:u:p:x:X:N:mklLPg:R:r:i:I:MEAn", longopts, &option); 449 argc, argv, "+?VqhvefCt:c:w:K:W:u:p:x:X:N:mklLPg:R:r:i:I:MEAn", longopts, &option);
450 450
451 if (option_index == -1 || option_index == EOF) { 451 if (CHECK_EOF(option_index)) {
452 break; 452 break;
453 } 453 }
454 454