diff options
| author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-01-13 12:15:16 +0000 |
|---|---|---|
| committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-01-13 12:15:16 +0000 |
| commit | 0c3386274ef5002dffc20337ef02407f24d7400c (patch) | |
| tree | 1e78bac7844a548e56a642b35acfe1fd67342f71 /plugins/check_ping.c | |
| parent | de5650f28e4e43a7264913953f95a75d8afe23f0 (diff) | |
| download | monitoring-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_ping.c')
| -rw-r--r-- | plugins/check_ping.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/check_ping.c b/plugins/check_ping.c index 3602122c..0c0f2e44 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" | 13 | const 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 | ||
| 488 | void | 488 | void |
| 489 | print_help (void) | 489 | print_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); |
