From faacf5525bef7140f67293125537a9f31ffd25a5 Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Wed, 19 Feb 2025 19:44:17 +0100 Subject: Fix wrong exit codes --- plugins/negate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/negate.c b/plugins/negate.c index 7e52fe67..750c0bfb 100644 --- a/plugins/negate.c +++ b/plugins/negate.c @@ -133,11 +133,11 @@ static const char **process_arguments(int argc, char **argv) { break; case 'h': /* help */ print_help(); - exit(EXIT_SUCCESS); + exit(STATE_UNKNOWN); break; case 'V': /* version */ print_revision(progname, NP_VERSION); - exit(EXIT_SUCCESS); + exit(STATE_UNKNOWN); case 't': /* timeout period */ if (!is_integer(optarg)) usage2(_("Timeout interval must be a positive integer"), optarg); -- cgit v1.2.3-74-g34f1