From 31713f6886512cfe9c5472b21a42203331a88200 Mon Sep 17 00:00:00 2001 From: Benoit Mortier Date: Thu, 23 Dec 2004 18:54:25 +0000 Subject: internationalization fixes git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1056 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_http.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'plugins') 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 */ -- cgit v1.2.3-74-g34f1