From aa155267bf366ba779ae5ec7fb033c28b54b266e 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_procs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/check_procs.c') diff --git a/plugins/check_procs.c b/plugins/check_procs.c index 50837cb4..174dcd97 100644 --- a/plugins/check_procs.c +++ b/plugins/check_procs.c @@ -432,7 +432,7 @@ check_procs_config_wrapper process_arguments(int argc, char **argv) { int option_index = getopt_long(argc, argv, "Vvhkt:c:w:p:s:u:C:a:z:r:m:P:TX:", longopts, &option); - if (option_index == -1 || option_index == EOF) { + if (CHECK_EOF(option_index)) { break; } -- cgit v1.2.3-74-g34f1