From e9ccc6b21a1152bbf150302c4a29a6df79d75bd7 Mon Sep 17 00:00:00 2001 From: Benoit Mortier Date: Sat, 25 Dec 2004 23:17:46 +0000 Subject: various fixes for localization git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1061 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_ssh.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'plugins/check_ssh.c') diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c index e957c053..7b7bc8fd 100644 --- a/plugins/check_ssh.c +++ b/plugins/check_ssh.c @@ -110,9 +110,7 @@ process_arguments (int argc, char **argv) switch (c) { case '?': /* help */ - printf (_("%s: Unknown argument: %s\n\n"), progname, optarg); - print_usage (); - exit (STATE_UNKNOWN); + usage2 (_("Unknown argument"), optarg); case 'V': /* version */ print_revision (progname, revision); exit (STATE_OK); @@ -135,7 +133,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 'r': /* remote version */ @@ -151,11 +149,9 @@ process_arguments (int argc, char **argv) port = atoi (optarg); } else { - printf ("Port number nust be a positive integer: %s\n", optarg); - usage (""); + usage2 (_("Port number must be a positive integer"), optarg); } } - } c = optind; -- cgit v1.2.3