summaryrefslogtreecommitdiffstats
path: root/plugins/check_radius.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_radius.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_radius.c')
-rw-r--r--plugins/check_radius.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/plugins/check_radius.c b/plugins/check_radius.c
index 9e10468..07ee4c7 100644
--- a/plugins/check_radius.c
+++ b/plugins/check_radius.c
@@ -199,12 +199,12 @@ process_arguments (int argc, char **argv)
199 if (is_intpos (argv[5])) 199 if (is_intpos (argv[5]))
200 retries = atoi (argv[5]); 200 retries = atoi (argv[5]);
201 else 201 else
202 usage (_("Number of retries must be a positive integer")); 202 usage4 (_("Number of retries must be a positive integer"));
203 server = argv[6]; 203 server = argv[6];
204 if (is_intpos (argv[7])) 204 if (is_intpos (argv[7]))
205 port = atoi (argv[7]); 205 port = atoi (argv[7]);
206 else 206 else
207 usage (_("Port must be a positive integer")); 207 usage4 (_("Port must be a positive integer"));
208 expect = argv[8]; 208 expect = argv[8];
209 return OK; 209 return OK;
210 } 210 }
@@ -218,9 +218,7 @@ process_arguments (int argc, char **argv)
218 218
219 switch (c) { 219 switch (c) {
220 case '?': /* print short usage statement if args not parsable */ 220 case '?': /* print short usage statement if args not parsable */
221 printf (_("%s: Unknown argument: %s\n\n"), progname, optarg); 221 usage2 (_("Unknown argument"), optarg);
222 print_usage ();
223 exit (STATE_UNKNOWN);
224 case 'h': /* help */ 222 case 'h': /* help */
225 print_help (); 223 print_help ();
226 exit (OK); 224 exit (OK);
@@ -240,7 +238,7 @@ process_arguments (int argc, char **argv)
240 if (is_intnonneg (optarg)) 238 if (is_intnonneg (optarg))
241 port = atoi (optarg); 239 port = atoi (optarg);
242 else 240 else
243 usage (_("Port must be a positive integer")); 241 usage4 (_("Port must be a positive integer"));
244 break; 242 break;
245 case 'u': /* username */ 243 case 'u': /* username */
246 username = optarg; 244 username = optarg;
@@ -261,7 +259,7 @@ process_arguments (int argc, char **argv)
261 if (is_intpos (optarg)) 259 if (is_intpos (optarg))
262 retries = atoi (optarg); 260 retries = atoi (optarg);
263 else 261 else
264 usage (_("Number of retries must be a positive integer")); 262 usage4 (_("Number of retries must be a positive integer"));
265 break; 263 break;
266 case 't': /* timeout */ 264 case 't': /* timeout */
267 if (is_intpos (optarg)) 265 if (is_intpos (optarg))