diff options
Diffstat (limited to 'plugins/negate.c')
-rw-r--r-- | plugins/negate.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/negate.c b/plugins/negate.c index 454ac96..e10c78d 100644 --- a/plugins/negate.c +++ b/plugins/negate.c | |||
@@ -31,7 +31,7 @@ const char *progname = "negate"; | |||
31 | #define SUMMARY "Negates the status of a plugin (returns OK for CRITICAL, and vice-versa).\n" | 31 | #define SUMMARY "Negates the status of a plugin (returns OK for CRITICAL, and vice-versa).\n" |
32 | 32 | ||
33 | #define OPTIONS "\ | 33 | #define OPTIONS "\ |
34 | \[-t timeout] <definition of wrapped plugin>" | 34 | [-t timeout] <definition of wrapped plugin>" |
35 | 35 | ||
36 | #define LONGOPTIONS "\ | 36 | #define LONGOPTIONS "\ |
37 | -t, --timeout=INTEGER\n\ | 37 | -t, --timeout=INTEGER\n\ |
@@ -117,7 +117,7 @@ main (int argc, char **argv) | |||
117 | char input_buffer[MAX_INPUT_BUFFER]; | 117 | char input_buffer[MAX_INPUT_BUFFER]; |
118 | 118 | ||
119 | if (process_arguments (argc, argv) == ERROR) | 119 | if (process_arguments (argc, argv) == ERROR) |
120 | usage ("Could not parse arguments"); | 120 | usage ("Could not parse arguments\n"); |
121 | 121 | ||
122 | /* Set signal handling and alarm */ | 122 | /* Set signal handling and alarm */ |
123 | if (signal (SIGALRM, timeout_alarm_handler) == SIG_ERR) | 123 | if (signal (SIGALRM, timeout_alarm_handler) == SIG_ERR) |
@@ -282,6 +282,8 @@ process_arguments (int argc, char **argv) | |||
282 | int | 282 | int |
283 | validate_arguments () | 283 | validate_arguments () |
284 | { | 284 | { |
285 | if (command_line == NULL) | ||
286 | return ERROR; | ||
285 | return STATE_OK; | 287 | return STATE_OK; |
286 | } | 288 | } |
287 | 289 | ||