summaryrefslogtreecommitdiffstats
path: root/plugins/check_snmp.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_snmp.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_snmp.c')
-rw-r--r--plugins/check_snmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index 1746fd79..0f62ce8b 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -447,7 +447,7 @@ static process_arguments_wrapper process_arguments(int argc, char **argv) {
447 argc, argv, 447 argc, argv,
448 "nhvVO46t:c:w:H:C:o:e:E:d:D:s:t:R:r:l:u:p:m:P:N:L:U:a:x:A:X:M:f:z:", longopts, &option); 448 "nhvVO46t:c:w:H:C:o:e:E:d:D:s:t:R:r:l:u:p:m:P:N:L:U:a:x:A:X:M:f:z:", longopts, &option);
449 449
450 if (option_char == -1 || option_char == EOF) { 450 if (CHECK_EOF(option_char)) {
451 break; 451 break;
452 } 452 }
453 453
@@ -517,7 +517,7 @@ static process_arguments_wrapper process_arguments(int argc, char **argv) {
517 argc, argv, 517 argc, argv,
518 "nhvVO46t:c:w:H:C:o:e:E:d:D:s:t:R:r:l:u:p:m:P:N:L:U:a:x:A:X:M:f:z:", longopts, &option); 518 "nhvVO46t:c:w:H:C:o:e:E:d:D:s:t:R:r:l:u:p:m:P:N:L:U:a:x:A:X:M:f:z:", longopts, &option);
519 519
520 if (option_char == -1 || option_char == EOF) { 520 if (CHECK_EOF(option_char)) {
521 break; 521 break;
522 } 522 }
523 523