diff options
| author | Sven Nierlein <sven@nierlein.de> | 2015-10-04 19:02:43 +0200 |
|---|---|---|
| committer | Sven Nierlein <sven@nierlein.de> | 2015-10-04 19:24:30 +0200 |
| commit | edca257e2032866f6ca63bc540a317574cd89ac8 (patch) | |
| tree | f209827befe4db2a63eeeaff34df613c194ff0ec /plugins/check_ups.c | |
| parent | d6baf9dbce1578ca59a577ac8155b835c46f0a16 (diff) | |
| download | monitoring-plugins-edca257e2032866f6ca63bc540a317574cd89ac8.tar.gz | |
use unknown exit code for help/version in plugins
Signed-off-by: Sven Nierlein <sven@nierlein.de>
Diffstat (limited to 'plugins/check_ups.c')
| -rw-r--r-- | plugins/check_ups.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_ups.c b/plugins/check_ups.c index 099881d0..dc5a348b 100644 --- a/plugins/check_ups.c +++ b/plugins/check_ups.c | |||
| @@ -558,10 +558,10 @@ process_arguments (int argc, char **argv) | |||
| 558 | break; | 558 | break; |
| 559 | case 'V': /* version */ | 559 | case 'V': /* version */ |
| 560 | print_revision (progname, NP_VERSION); | 560 | print_revision (progname, NP_VERSION); |
| 561 | exit (STATE_OK); | 561 | exit (STATE_UNKNOWN); |
| 562 | case 'h': /* help */ | 562 | case 'h': /* help */ |
| 563 | print_help (); | 563 | print_help (); |
| 564 | exit (STATE_OK); | 564 | exit (STATE_UNKNOWN); |
| 565 | } | 565 | } |
| 566 | } | 566 | } |
| 567 | 567 | ||
