diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_http.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c index 5f96e31..6e76706 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c | |||
@@ -251,9 +251,7 @@ process_arguments (int argc, char **argv) | |||
251 | 251 | ||
252 | switch (c) { | 252 | switch (c) { |
253 | case '?': /* usage */ | 253 | case '?': /* usage */ |
254 | printf (_("%s: Unknown argument: %s\n\n"), progname, optarg); | 254 | usage2 (_("Unknown argument"), optarg); |
255 | print_usage (); | ||
256 | exit (STATE_UNKNOWN); | ||
257 | break; | 255 | break; |
258 | case 'h': /* help */ | 256 | case 'h': /* help */ |
259 | print_help (); | 257 | print_help (); |
@@ -299,7 +297,7 @@ process_arguments (int argc, char **argv) | |||
299 | break; | 297 | break; |
300 | case 'S': /* use SSL */ | 298 | case 'S': /* use SSL */ |
301 | #ifndef HAVE_SSL | 299 | #ifndef HAVE_SSL |
302 | usage (_("check_http: invalid option - SSL is not available\n")); | 300 | usage4 (_("Invalid option - SSL is not available")); |
303 | #endif | 301 | #endif |
304 | use_ssl = TRUE; | 302 | use_ssl = TRUE; |
305 | if (specify_port == FALSE) | 303 | if (specify_port == FALSE) |
@@ -314,7 +312,7 @@ process_arguments (int argc, char **argv) | |||
314 | check_cert = TRUE; | 312 | check_cert = TRUE; |
315 | } | 313 | } |
316 | #else | 314 | #else |
317 | usage (_("Invalid option - SSL is not available\n")); | 315 | usage4 (_("Invalid option - SSL is not available")); |
318 | #endif | 316 | #endif |
319 | break; | 317 | break; |
320 | case 'f': /* onredirect */ | 318 | case 'f': /* onredirect */ |