summaryrefslogtreecommitdiffstats
path: root/plugins/check_http.c
diff options
context:
space:
mode:
authorBenoit Mortier <opensides@users.sourceforge.net>2004-12-03 09:19:18 (GMT)
committerBenoit Mortier <opensides@users.sourceforge.net>2004-12-03 09:19:18 (GMT)
commit83df67099daebd7189ad0417089040f3b2de27c1 (patch)
treea821e85265092ae1f55d64ac9499d9d951466470 /plugins/check_http.c
parent9d704527496ac715e24bcc844b39125022c0aabc (diff)
downloadmonitoring-plugins-83df67099daebd7189ad0417089040f3b2de27c1.tar.gz
Localization fixes
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@988 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r--plugins/check_http.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 93bff45..f6cf507 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -346,7 +346,7 @@ process_arguments (int argc, char **argv)
346 break; 346 break;
347 case 'p': /* Server port */ 347 case 'p': /* Server port */
348 if (!is_intnonneg (optarg)) 348 if (!is_intnonneg (optarg))
349 usage2 (_("invalid port number"), optarg); 349 usage2 (_("Invalid port number"), optarg);
350 else { 350 else {
351 server_port = atoi (optarg); 351 server_port = atoi (optarg);
352 specify_port = TRUE; 352 specify_port = TRUE;
@@ -377,7 +377,7 @@ process_arguments (int argc, char **argv)
377 case 'l': /* linespan */ 377 case 'l': /* linespan */
378 case 'r': /* linespan */ 378 case 'r': /* linespan */
379 case 'R': /* linespan */ 379 case 'R': /* linespan */
380 usage (_("check_http: call for regex which was not a compiled option\n")); 380 usage4 (_("Call for regex which was not a compiled option"));
381 break; 381 break;
382#else 382#else
383 case 'l': /* linespan */ 383 case 'l': /* linespan */
@@ -403,7 +403,7 @@ process_arguments (int argc, char **argv)
403#ifdef USE_IPV6 403#ifdef USE_IPV6
404 address_family = AF_INET6; 404 address_family = AF_INET6;
405#else 405#else
406 usage (_("IPv6 support not available\n")); 406 usage4 (_("IPv6 support not available"));
407#endif 407#endif
408 break; 408 break;
409 case 'v': /* verbose */ 409 case 'v': /* verbose */
@@ -446,7 +446,7 @@ process_arguments (int argc, char **argv)
446 446
447 if (server_address == NULL) { 447 if (server_address == NULL) {
448 if (host_name == NULL) 448 if (host_name == NULL)
449 usage (_("check_http: you must specify a server address or host name\n")); 449 usage4 (_("You must specify a server address or host name"));
450 else 450 else
451 server_address = strdup (host_name); 451 server_address = strdup (host_name);
452 } 452 }
@@ -1049,11 +1049,11 @@ redir (char *pos, char *status_line)
1049 1049
1050 addr = malloc (MAX_IPV4_HOSTLENGTH + 1); 1050 addr = malloc (MAX_IPV4_HOSTLENGTH + 1);
1051 if (addr == NULL) 1051 if (addr == NULL)
1052 die (STATE_UNKNOWN, _("could not allocate addr\n")); 1052 die (STATE_UNKNOWN, _("Could not allocate addr\n"));
1053 1053
1054 url = malloc (strcspn (pos, "\r\n")); 1054 url = malloc (strcspn (pos, "\r\n"));
1055 if (url == NULL) 1055 if (url == NULL)
1056 die (STATE_UNKNOWN, _("could not allocate url\n")); 1056 die (STATE_UNKNOWN, _("Could not allocate url\n"));
1057 1057
1058 while (pos) { 1058 while (pos) {
1059 1059