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.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/check_radius.c b/plugins/check_radius.c
index 725cf9f8..3e6bdcae 100644
--- a/plugins/check_radius.c
+++ b/plugins/check_radius.c
@@ -14,6 +14,8 @@
14 along with this program; if not, write to the Free Software 14 along with this program; if not, write to the Free Software
15 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 15 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16 16
17 $Id$
18
17 ******************************************************************************/ 19 ******************************************************************************/
18 20
19const char *progname = "check_radius"; 21const char *progname = "check_radius";
@@ -94,6 +96,8 @@ Please note that all tags must be lowercase to use the DocBook XML DTD.
94-@@ 96-@@
95******************************************************************************/ 97******************************************************************************/
96 98
99
100
97int 101int
98main (int argc, char **argv) 102main (int argc, char **argv)
99{ 103{
@@ -109,7 +113,7 @@ main (int argc, char **argv)
109 textdomain (PACKAGE); 113 textdomain (PACKAGE);
110 114
111 if (process_arguments (argc, argv) == ERROR) 115 if (process_arguments (argc, argv) == ERROR)
112 usage (_("Could not parse arguments\n")); 116 usage (_("check_radius: could not parse arguments\n"));
113 117
114 str = strdup ("dictionary"); 118 str = strdup ("dictionary");
115 if ((config_file && rc_read_config (config_file)) || 119 if ((config_file && rc_read_config (config_file)) ||
@@ -199,7 +203,7 @@ process_arguments (int argc, char **argv)
199 if (is_intpos (argv[7])) 203 if (is_intpos (argv[7]))
200 port = atoi (argv[7]); 204 port = atoi (argv[7]);
201 else 205 else
202 usage (_("Server port must be a positive integer")); 206 usage (_("Port must be a positive integer"));
203 expect = argv[8]; 207 expect = argv[8];
204 return OK; 208 return OK;
205 } 209 }
@@ -227,7 +231,7 @@ process_arguments (int argc, char **argv)
227 break; 231 break;
228 case 'H': /* hostname */ 232 case 'H': /* hostname */
229 if (is_host (optarg) == FALSE) { 233 if (is_host (optarg) == FALSE) {
230 usage2 (_("Invalid host name/address"), optarg); 234 usage2 (_("Invalid hostname/address"), optarg);
231 } 235 }
232 server = optarg; 236 server = optarg;
233 break; 237 break;
@@ -235,7 +239,7 @@ process_arguments (int argc, char **argv)
235 if (is_intnonneg (optarg)) 239 if (is_intnonneg (optarg))
236 port = atoi (optarg); 240 port = atoi (optarg);
237 else 241 else
238 usage (_("Server port must be a positive integer")); 242 usage (_("Port must be a positive integer"));
239 break; 243 break;
240 case 'u': /* username */ 244 case 'u': /* username */
241 username = optarg; 245 username = optarg;
@@ -271,9 +275,6 @@ process_arguments (int argc, char **argv)
271 275
272 276
273 277
274
275
276
277void 278void
278print_help (void) 279print_help (void)
279{ 280{
@@ -329,7 +330,6 @@ otherwise compormise could occur.\n"));
329 330
330 331
331 332
332
333void 333void
334print_usage (void) 334print_usage (void)
335{ 335{