diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-01-13 12:15:16 (GMT) |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-01-13 12:15:16 (GMT) |
commit | 0c3386274ef5002dffc20337ef02407f24d7400c (patch) | |
tree | 1e78bac7844a548e56a642b35acfe1fd67342f71 /plugins/check_time.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_time.c')
-rw-r--r-- | plugins/check_time.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/check_time.c b/plugins/check_time.c index c7405f6..e4bd26d 100644 --- a/plugins/check_time.c +++ b/plugins/check_time.c | |||
@@ -39,7 +39,7 @@ | |||
39 | #include "netutils.h" | 39 | #include "netutils.h" |
40 | #include "utils.h" | 40 | #include "utils.h" |
41 | 41 | ||
42 | #define PROGNAME "check_time" | 42 | const char *progname = "check_time"; |
43 | #define REVISION "$Revision$" | 43 | #define REVISION "$Revision$" |
44 | #define COPYRIGHT "1999-2002" | 44 | #define COPYRIGHT "1999-2002" |
45 | #define AUTHOR "Ethan Galstad" | 45 | #define AUTHOR "Ethan Galstad" |
@@ -209,7 +209,7 @@ process_arguments (int argc, char **argv) | |||
209 | print_help (); | 209 | print_help (); |
210 | exit (STATE_OK); | 210 | exit (STATE_OK); |
211 | case 'V': /* version */ | 211 | case 'V': /* version */ |
212 | print_revision (PROGNAME, REVISION); | 212 | print_revision (progname, REVISION); |
213 | exit (STATE_OK); | 213 | exit (STATE_OK); |
214 | case 'H': /* hostname */ | 214 | case 'H': /* hostname */ |
215 | if (is_host (optarg) == FALSE) | 215 | if (is_host (optarg) == FALSE) |
@@ -306,7 +306,7 @@ print_usage (void) | |||
306 | " [-W connect_time] [-C connect_time] [-t timeout]\n" | 306 | " [-W connect_time] [-C connect_time] [-t timeout]\n" |
307 | " %s (-h | --help) for detailed help\n" | 307 | " %s (-h | --help) for detailed help\n" |
308 | " %s (-V | --version) for version information\n", | 308 | " %s (-V | --version) for version information\n", |
309 | PROGNAME, PROGNAME, PROGNAME); | 309 | progname, progname, progname); |
310 | } | 310 | } |
311 | 311 | ||
312 | 312 | ||
@@ -316,7 +316,7 @@ print_usage (void) | |||
316 | void | 316 | void |
317 | print_help (void) | 317 | print_help (void) |
318 | { | 318 | { |
319 | print_revision (PROGNAME, REVISION); | 319 | print_revision (progname, REVISION); |
320 | printf | 320 | printf |
321 | ("Copyright (c) %s %s <%s>\n\n%s\n", | 321 | ("Copyright (c) %s %s <%s>\n\n%s\n", |
322 | COPYRIGHT, AUTHOR, EMAIL, SUMMARY); | 322 | COPYRIGHT, AUTHOR, EMAIL, SUMMARY); |