summaryrefslogtreecommitdiffstats
path: root/plugins/check_ssh.c
diff options
context:
space:
mode:
authorBenoit Mortier <opensides@users.sourceforge.net>2004-12-25 23:17:46 (GMT)
committerBenoit Mortier <opensides@users.sourceforge.net>2004-12-25 23:17:46 (GMT)
commite9ccc6b21a1152bbf150302c4a29a6df79d75bd7 (patch)
tree91bf1ebb6f927fd628b298df2ac5a89580282591 /plugins/check_ssh.c
parent71656b2aafffb69716620bf08cce76c925dc8fa3 (diff)
downloadmonitoring-plugins-e9ccc6b21a1152bbf150302c4a29a6df79d75bd7.tar.gz
various fixes for localization
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1061 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_ssh.c')
-rw-r--r--plugins/check_ssh.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c
index e957c05..7b7bc8f 100644
--- a/plugins/check_ssh.c
+++ b/plugins/check_ssh.c
@@ -110,9 +110,7 @@ process_arguments (int argc, char **argv)
110 110
111 switch (c) { 111 switch (c) {
112 case '?': /* help */ 112 case '?': /* help */
113 printf (_("%s: Unknown argument: %s\n\n"), progname, optarg); 113 usage2 (_("Unknown argument"), optarg);
114 print_usage ();
115 exit (STATE_UNKNOWN);
116 case 'V': /* version */ 114 case 'V': /* version */
117 print_revision (progname, revision); 115 print_revision (progname, revision);
118 exit (STATE_OK); 116 exit (STATE_OK);
@@ -135,7 +133,7 @@ process_arguments (int argc, char **argv)
135#ifdef USE_IPV6 133#ifdef USE_IPV6
136 address_family = AF_INET6; 134 address_family = AF_INET6;
137#else 135#else
138 usage (_("IPv6 support not available\n")); 136 usage4 (_("IPv6 support not available"));
139#endif 137#endif
140 break; 138 break;
141 case 'r': /* remote version */ 139 case 'r': /* remote version */
@@ -151,11 +149,9 @@ process_arguments (int argc, char **argv)
151 port = atoi (optarg); 149 port = atoi (optarg);
152 } 150 }
153 else { 151 else {
154 printf ("Port number nust be a positive integer: %s\n", optarg); 152 usage2 (_("Port number must be a positive integer"), optarg);
155 usage ("");
156 } 153 }
157 } 154 }
158
159 } 155 }
160 156
161 c = optind; 157 c = optind;