diff options
author | Sven Nierlein <sven@nierlein.de> | 2015-10-04 19:03:50 +0200 |
---|---|---|
committer | Sven Nierlein <sven@nierlein.de> | 2015-10-04 19:24:30 +0200 |
commit | bebf1cd050ecb0e23f02353e19125767623bd41f (patch) | |
tree | f09e4862c0c4f4f4cb31feb789304feee2e9d79a /plugins-root/check_dhcp.c | |
parent | edca257e2032866f6ca63bc540a317574cd89ac8 (diff) | |
download | monitoring-plugins-bebf1cd050ecb0e23f02353e19125767623bd41f.tar.gz |
use unknown exit code for help/version in plugins-root as well
Signed-off-by: Sven Nierlein <sven@nierlein.de>
Diffstat (limited to 'plugins-root/check_dhcp.c')
-rw-r--r-- | plugins-root/check_dhcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins-root/check_dhcp.c b/plugins-root/check_dhcp.c index b874c555..3723e61a 100644 --- a/plugins-root/check_dhcp.c +++ b/plugins-root/check_dhcp.c | |||
@@ -1163,11 +1163,11 @@ int call_getopt(int argc, char **argv){ | |||
1163 | 1163 | ||
1164 | case 'V': /* version */ | 1164 | case 'V': /* version */ |
1165 | print_revision(progname, NP_VERSION); | 1165 | print_revision(progname, NP_VERSION); |
1166 | exit(STATE_OK); | 1166 | exit(STATE_UNKNOWN); |
1167 | 1167 | ||
1168 | case 'h': /* help */ | 1168 | case 'h': /* help */ |
1169 | print_help(); | 1169 | print_help(); |
1170 | exit(STATE_OK); | 1170 | exit(STATE_UNKNOWN); |
1171 | 1171 | ||
1172 | case 'v': /* verbose */ | 1172 | case 'v': /* verbose */ |
1173 | verbose=1; | 1173 | verbose=1; |