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_tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/check_tcp.c') diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c index 09806373..ec334941 100644 --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c @@ -550,7 +550,7 @@ static check_tcp_config_wrapper process_arguments(int argc, char **argv, check_t int option_index = getopt_long(argc, argv, "+hVv46EAH:s:e:q:m:c:w:t:p:C:W:d:Sr:jD:M:", longopts, &option); - if (option_index == -1 || option_index == EOF || option_index == 1) { + if (CHECK_EOF(option_index) || option_index == 1) { break; } -- cgit v1.2.3-74-g34f1