summaryrefslogtreecommitdiffstats
path: root/plugins/check_radius.c
diff options
context:
space:
mode:
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 ece1794..725cf9f 100644
--- a/plugins/check_radius.c
+++ b/plugins/check_radius.c
@@ -190,7 +190,7 @@ process_arguments (int argc, char **argv)
190 if (is_intpos (argv[4])) 190 if (is_intpos (argv[4]))
191 timeout_interval = atoi (argv[4]); 191 timeout_interval = atoi (argv[4]);
192 else 192 else
193 usage (_("Timeout interval must be a positive integer")); 193 usage2 (_("Timeout interval must be a positive integer"), optarg);
194 if (is_intpos (argv[5])) 194 if (is_intpos (argv[5]))
195 retries = atoi (argv[5]); 195 retries = atoi (argv[5]);
196 else 196 else
@@ -227,9 +227,7 @@ process_arguments (int argc, char **argv)
227 break; 227 break;
228 case 'H': /* hostname */ 228 case 'H': /* hostname */
229 if (is_host (optarg) == FALSE) { 229 if (is_host (optarg) == FALSE) {
230 printf (_("Invalid host name/address\n\n")); 230 usage2 (_("Invalid host name/address"), optarg);
231 print_usage ();
232 exit (STATE_UNKNOWN);
233 } 231 }
234 server = optarg; 232 server = optarg;
235 break; 233 break;
@@ -264,7 +262,7 @@ process_arguments (int argc, char **argv)
264 if (is_intpos (optarg)) 262 if (is_intpos (optarg))
265 timeout_interval = atoi (optarg); 263 timeout_interval = atoi (optarg);
266 else 264 else
267 usage (_("Timeout interval must be a positive integer")); 265 usage2 (_("Timeout interval must be a positive integer"), optarg);
268 break; 266 break;
269 } 267 }
270 } 268 }
@@ -284,8 +282,8 @@ print_help (void)
284 282
285 print_revision (progname, revision); 283 print_revision (progname, revision);
286 284
287 printf (_("Copyright (c) 1999 Robert August Vincent II\n")); 285 printf ("Copyright (c) 1999 Robert August Vincent II\n");
288 printf (_(COPYRIGHT), copyright, email); 286 printf (COPYRIGHT, copyright, email);
289 287
290 printf(_("Tests to see if a radius server is accepting connections.\n\n")); 288 printf(_("Tests to see if a radius server is accepting connections.\n\n"));
291 289