summaryrefslogtreecommitdiffstats
path: root/plugins/check_radius.c
diff options
context:
space:
mode:
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-01-13 12:15:16 (GMT)
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-01-13 12:15:16 (GMT)
commit0c3386274ef5002dffc20337ef02407f24d7400c (patch)
tree1e78bac7844a548e56a642b35acfe1fd67342f71 /plugins/check_radius.c
parentde5650f28e4e43a7264913953f95a75d8afe23f0 (diff)
downloadmonitoring-plugins-0c3386274ef5002dffc20337ef02407f24d7400c.tar.gz
convert PROGANE from a define to a const char
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@238 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_radius.c')
-rw-r--r--plugins/check_radius.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/check_radius.c b/plugins/check_radius.c
index c346dc7..0762896 100644
--- a/plugins/check_radius.c
+++ b/plugins/check_radius.c
@@ -23,7 +23,7 @@
23 * 23 *
24 *****************************************************************************/ 24 *****************************************************************************/
25 25
26#define PROGNAME "check_radius" 26const char *progname = "check_radius"
27#define REVISION "$Revision$" 27#define REVISION "$Revision$"
28#define COPYRIGHT "1999-2001" 28#define COPYRIGHT "1999-2001"
29#define AUTHORS "Robert August Vincent II/Karl DeBisschop" 29#define AUTHORS "Robert August Vincent II/Karl DeBisschop"
@@ -112,7 +112,7 @@ Please note that all tags must be lowercase to use the DocBook XML DTD.
112<manvolnum>5<manvolnum> 112<manvolnum>5<manvolnum>
113</refmeta> 113</refmeta>
114<refnamdiv> 114<refnamdiv>
115<refname>&PROGNAME;</refname> 115<refname>&progname;</refname>
116<refpurpose>&SUMMARY;</refpurpose> 116<refpurpose>&SUMMARY;</refpurpose>
117</refnamdiv> 117</refnamdiv>
118</refentry> 118</refentry>
@@ -264,14 +264,14 @@ process_arguments (int argc, char **argv)
264 264
265 switch (c) { 265 switch (c) {
266 case '?': /* print short usage statement if args not parsable */ 266 case '?': /* print short usage statement if args not parsable */
267 printf ("%s: Unknown argument: %s\n\n", my_basename (argv[0]), optarg); 267 printf ("%s: Unknown argument: %s\n\n", progname, optarg);
268 print_usage (); 268 print_usage ();
269 exit (STATE_UNKNOWN); 269 exit (STATE_UNKNOWN);
270 case 'h': /* help */ 270 case 'h': /* help */
271 print_help (); 271 print_help ();
272 exit (OK); 272 exit (OK);
273 case 'V': /* version */ 273 case 'V': /* version */
274 print_revision (my_basename (argv[0]), "$Revision$"); 274 print_revision (progname, "$Revision$");
275 exit (OK); 275 exit (OK);
276 case 'v': /* verbose mode */ 276 case 'v': /* verbose mode */
277 verbose = TRUE; 277 verbose = TRUE;
@@ -324,7 +324,7 @@ process_arguments (int argc, char **argv)
324void 324void
325print_help (void) 325print_help (void)
326{ 326{
327 print_revision (PROGNAME, REVISION); 327 print_revision (progname, REVISION);
328 printf 328 printf
329 ("Copyright (c) %s %s <%s>\n\n%s\n", 329 ("Copyright (c) %s %s <%s>\n\n%s\n",
330 COPYRIGHT, AUTHORS, EMAIL, SUMMARY); 330 COPYRIGHT, AUTHORS, EMAIL, SUMMARY);
@@ -347,5 +347,5 @@ print_usage (void)
347 " %s -h for detailed help\n" 347 " %s -h for detailed help\n"
348 " %s -V for version information\n", 348 " %s -V for version information\n",
349#endif 349#endif
350 PROGNAME, OPTIONS, PROGNAME, PROGNAME); 350 progname, OPTIONS, progname, progname);
351} 351}