summaryrefslogtreecommitdiffstats
path: root/plugins/check_snmp.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_snmp.c
parent3a6f9292f147de29b21dafa4cf9b7efce3e4cbfd (diff)
downloadmonitoring-plugins-aa155267bf366ba779ae5ec7fb033c28b54b266e.tar.gz
added CHECK_EOF to work around warnings about EOF and -1 being the same
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