aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_http.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r--plugins/check_http.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 5f96e31e..6e767062 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -251,9 +251,7 @@ process_arguments (int argc, char **argv)
switch (c) {
case '?': /* usage */
- printf (_("%s: Unknown argument: %s\n\n"), progname, optarg);
- print_usage ();
- exit (STATE_UNKNOWN);
+ usage2 (_("Unknown argument"), optarg);
break;
case 'h': /* help */
print_help ();
@@ -299,7 +297,7 @@ process_arguments (int argc, char **argv)
break;
case 'S': /* use SSL */
#ifndef HAVE_SSL
- usage (_("check_http: invalid option - SSL is not available\n"));
+ usage4 (_("Invalid option - SSL is not available"));
#endif
use_ssl = TRUE;
if (specify_port == FALSE)
@@ -314,7 +312,7 @@ process_arguments (int argc, char **argv)
check_cert = TRUE;
}
#else
- usage (_("Invalid option - SSL is not available\n"));
+ usage4 (_("Invalid option - SSL is not available"));
#endif
break;
case 'f': /* onredirect */