summaryrefslogtreecommitdiffstats
path: root/plugins/check_ping.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_ping.c')
-rw-r--r--plugins/check_ping.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/check_ping.c b/plugins/check_ping.c
index 3602122..0c0f2e4 100644
--- a/plugins/check_ping.c
+++ b/plugins/check_ping.c
@@ -10,7 +10,7 @@
10* 10*
11*****************************************************************************/ 11*****************************************************************************/
12 12
13#define PROGNAME "check_ping" 13const char *progname = "check_ping";
14#define REVISION "$Revision$" 14#define REVISION "$Revision$"
15#define COPYRIGHT "1999-2001" 15#define COPYRIGHT "1999-2001"
16#define AUTHOR "Ethan Galstad/Karl DeBisschop" 16#define AUTHOR "Ethan Galstad/Karl DeBisschop"
@@ -189,7 +189,7 @@ process_arguments (int argc, char **argv)
189 print_help (); 189 print_help ();
190 exit (STATE_OK); 190 exit (STATE_OK);
191 case 'V': /* version */ 191 case 'V': /* version */
192 print_revision (PROGNAME, REVISION); 192 print_revision (progname, REVISION);
193 exit (STATE_OK); 193 exit (STATE_OK);
194 case 't': /* timeout period */ 194 case 't': /* timeout period */
195 timeout_interval = atoi (optarg); 195 timeout_interval = atoi (optarg);
@@ -482,13 +482,13 @@ print_usage (void)
482 " %s -h for detailed help\n" 482 " %s -h for detailed help\n"
483 " %s -V for version information\n", 483 " %s -V for version information\n",
484#endif 484#endif
485 PROGNAME, OPTIONS, PROGNAME, PROGNAME); 485 progname, OPTIONS, progname, progname);
486} 486}
487 487
488void 488void
489print_help (void) 489print_help (void)
490{ 490{
491 print_revision (PROGNAME, REVISION); 491 print_revision (progname, REVISION);
492 printf 492 printf
493 ("Copyright (c) %s %s <%s>\n\n%s\n", 493 ("Copyright (c) %s %s <%s>\n\n%s\n",
494 COPYRIGHT, AUTHOR, EMAIL, SUMMARY); 494 COPYRIGHT, AUTHOR, EMAIL, SUMMARY);