From 81bee45f6e562ffc30e1129cf00cd76444a77ce8 Mon Sep 17 00:00:00 2001 From: Benoit Mortier Date: Sat, 4 Dec 2004 12:12:30 +0000 Subject: internationalization fixes bugfixes git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1001 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_tcp.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'plugins/check_tcp.c') diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c index 418438a3..ce57631a 100644 --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c @@ -474,7 +474,7 @@ process_arguments (int argc, char **argv) #ifdef USE_IPV6 address_family = AF_INET6; #else - usage (_("IPv6 support not available\n")); + usage4 (_("IPv6 support not available")); #endif break; case 'H': /* hostname */ @@ -484,7 +484,7 @@ process_arguments (int argc, char **argv) break; case 'c': /* critical */ if (!is_intnonneg (optarg)) - usage (_("Critical threshold must be a positive integer\n")); + usage4 (_("Critical threshold must be a positive integer")); else critical_time = strtod (optarg, NULL); check_critical_time = TRUE; @@ -494,7 +494,7 @@ process_arguments (int argc, char **argv) break; case 'w': /* warning */ if (!is_intnonneg (optarg)) - usage (_("Warning threshold must be a positive integer\n")); + usage4 (_("Warning threshold must be a positive integer")); else warning_time = strtod (optarg, NULL); check_warning_time = TRUE; @@ -509,13 +509,13 @@ process_arguments (int argc, char **argv) break; case 't': /* timeout */ if (!is_intpos (optarg)) - usage (_("Timeout interval must be a positive integer\n")); + usage4 (_("Timeout interval must be a positive integer")); else socket_timeout = atoi (optarg); break; case 'p': /* port */ if (!is_intpos (optarg)) - usage (_("Port must be a positive integer\n")); + usage4 (_("Port must be a positive integer")); else server_port = atoi (optarg); break; @@ -532,7 +532,7 @@ process_arguments (int argc, char **argv) break; case 'm': if (!is_intpos (optarg)) - usage (_("Maxbytes must be a positive integer\n")); + usage4 (_("Maxbytes must be a positive integer")); else maxbytes = atoi (optarg); case 'q': @@ -546,13 +546,13 @@ process_arguments (int argc, char **argv) else if (!strncmp(optarg,"crit",4)) econn_refuse_state = STATE_CRITICAL; else - usage (_("Refuse must be one of ok, warn, crit\n")); + usage4 (_("Refuse must be one of ok, warn, crit")); break; case 'd': if (is_intpos (optarg)) delay = atoi (optarg); else - usage (_("Delay must be a positive integer\n")); + usage4 (_("Delay must be a positive integer")); break; case 'D': /* Check SSL cert validity - days 'til certificate expiration */ #ifdef HAVE_SSL -- cgit v1.2.3