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_mrtgtraf.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_mrtgtraf.c')
-rw-r--r-- | plugins/check_mrtgtraf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/check_mrtgtraf.c b/plugins/check_mrtgtraf.c index d33ebd9c..05830026 100644 --- a/plugins/check_mrtgtraf.c +++ b/plugins/check_mrtgtraf.c | |||
@@ -52,7 +52,7 @@ | |||
52 | #include "common.h" | 52 | #include "common.h" |
53 | #include "utils.h" | 53 | #include "utils.h" |
54 | 54 | ||
55 | #define PROGNAME "check_mrtgtraf" | 55 | const char *progname = "check_mrtgtraf"; |
56 | 56 | ||
57 | int process_arguments (int, char **); | 57 | int process_arguments (int, char **); |
58 | int validate_arguments (void); | 58 | int validate_arguments (void); |
@@ -292,7 +292,7 @@ process_arguments (int argc, char **argv) | |||
292 | &outgoing_warning_threshold); | 292 | &outgoing_warning_threshold); |
293 | break; | 293 | break; |
294 | case 'V': /* version */ | 294 | case 'V': /* version */ |
295 | print_revision (PROGNAME, "$Revision$"); | 295 | print_revision (progname, "$Revision$"); |
296 | exit (STATE_OK); | 296 | exit (STATE_OK); |
297 | case 'h': /* help */ | 297 | case 'h': /* help */ |
298 | print_help (); | 298 | print_help (); |
@@ -356,7 +356,7 @@ validate_arguments (void) | |||
356 | void | 356 | void |
357 | print_help (void) | 357 | print_help (void) |
358 | { | 358 | { |
359 | print_revision (PROGNAME, "$Revision$"); | 359 | print_revision (progname, "$Revision$"); |
360 | printf | 360 | printf |
361 | ("Copyright (c) 2000 Tom Shields/Karl DeBisschop\n\n" | 361 | ("Copyright (c) 2000 Tom Shields/Karl DeBisschop\n\n" |
362 | "This plugin tests the UPS service on the specified host.\n\n"); | 362 | "This plugin tests the UPS service on the specified host.\n\n"); |
@@ -390,5 +390,5 @@ print_usage (void) | |||
390 | ("Usage: %s -F <log_file> -a <AVG | MAX> -v <variable> -w <warning_pair> -c <critical_pair>\n" | 390 | ("Usage: %s -F <log_file> -a <AVG | MAX> -v <variable> -w <warning_pair> -c <critical_pair>\n" |
391 | " [-e expire_minutes] [-t timeout] [-v]\n" | 391 | " [-e expire_minutes] [-t timeout] [-v]\n" |
392 | " %s --help\n" | 392 | " %s --help\n" |
393 | " %s --version\n", PROGNAME, PROGNAME, PROGNAME); | 393 | " %s --version\n", progname, progname, progname); |
394 | } | 394 | } |