diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-02-19 19:44:17 +0100 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-02-19 19:44:17 +0100 |
commit | faacf5525bef7140f67293125537a9f31ffd25a5 (patch) | |
tree | 4049a3cc8683ff07121d9efc801f8468c7932c0a /plugins | |
parent | b982e12ecfee9db869d443d2a8524182b7d09b13 (diff) | |
download | monitoring-plugins-faacf5525bef7140f67293125537a9f31ffd25a5.tar.gz |
Fix wrong exit codes
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/negate.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { | |||
133 | break; | 133 | break; |
134 | case 'h': /* help */ | 134 | case 'h': /* help */ |
135 | print_help(); | 135 | print_help(); |
136 | exit(EXIT_SUCCESS); | 136 | exit(STATE_UNKNOWN); |
137 | break; | 137 | break; |
138 | case 'V': /* version */ | 138 | case 'V': /* version */ |
139 | print_revision(progname, NP_VERSION); | 139 | print_revision(progname, NP_VERSION); |
140 | exit(EXIT_SUCCESS); | 140 | exit(STATE_UNKNOWN); |
141 | case 't': /* timeout period */ | 141 | case 't': /* timeout period */ |
142 | if (!is_integer(optarg)) | 142 | if (!is_integer(optarg)) |
143 | usage2(_("Timeout interval must be a positive integer"), optarg); | 143 | usage2(_("Timeout interval must be a positive integer"), optarg); |