From 1db493092ca6a68ff690251cc428037b54019a73 Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Wed, 8 Apr 2026 18:26:03 +0200 Subject: added CHECK_EOF to work around warnings about EOF and -1 being the same (#2254) Co-authored-by: Andreas Baumann --- plugins/check_hpjd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/check_hpjd.c') diff --git a/plugins/check_hpjd.c b/plugins/check_hpjd.c index 9907abc5..883f1df0 100644 --- a/plugins/check_hpjd.c +++ b/plugins/check_hpjd.c @@ -299,7 +299,7 @@ check_hpjd_config_wrapper process_arguments(int argc, char **argv) { while (true) { int option_index = getopt_long(argc, argv, "+hVH:C:p:D", 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