diff options
author | Benoit Mortier <opensides@users.sourceforge.net> | 2004-12-23 18:54:25 (GMT) |
---|---|---|
committer | Benoit Mortier <opensides@users.sourceforge.net> | 2004-12-23 18:54:25 (GMT) |
commit | 31713f6886512cfe9c5472b21a42203331a88200 (patch) | |
tree | 22f8bea166ecb08d9c9274d13f67f8fe969a86c0 /plugins | |
parent | 9110c2be7a42e03466b0827f447229db4e73f496 (diff) | |
download | monitoring-plugins-31713f6886512cfe9c5472b21a42203331a88200.tar.gz |
internationalization fixes
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1056 f882894a-f735-0410-b71e-b25c423dba1c
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 */ |