From 8d44bd8e6902dbb49e98c12bb6bf3d9e4c4b413f Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 23 Jan 2026 08:57:19 +0100 Subject: added CHECK_EOF to work around warnings about EOF and -1 being the same --- plugins/check_snmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/check_snmp.c') diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index f470d222..52090bf8 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c @@ -445,7 +445,7 @@ static process_arguments_wrapper process_arguments(int argc, char **argv) { argc, argv, "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); - if (option_char == -1 || option_char == EOF) { + if (CHECK_EOF(option_char)) { break; } @@ -515,7 +515,7 @@ static process_arguments_wrapper process_arguments(int argc, char **argv) { argc, argv, "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); - if (option_char == -1 || option_char == EOF) { + if (CHECK_EOF(option_char)) { break; } -- cgit v1.2.3-74-g34f1