diff options
Diffstat (limited to 'plugins/check_snmp.c')
-rw-r--r-- | plugins/check_snmp.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index cb13bc9..b005984 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c | |||
@@ -23,7 +23,7 @@ | |||
23 | * | 23 | * |
24 | *****************************************************************************/ | 24 | *****************************************************************************/ |
25 | 25 | ||
26 | #define PROGNAME "check_snmp" | 26 | const char *progname = "check_snmp"; |
27 | #define REVISION "$Revision$" | 27 | #define REVISION "$Revision$" |
28 | #define COPYRIGHT "1999-2002" | 28 | #define COPYRIGHT "1999-2002" |
29 | #define AUTHOR "Ethan Galstad" | 29 | #define AUTHOR "Ethan Galstad" |
@@ -475,7 +475,7 @@ process_arguments (int argc, char **argv) | |||
475 | print_help (); | 475 | print_help (); |
476 | exit (STATE_OK); | 476 | exit (STATE_OK); |
477 | case 'V': /* version */ | 477 | case 'V': /* version */ |
478 | print_revision (PROGNAME, REVISION); | 478 | print_revision (progname, REVISION); |
479 | exit (STATE_OK); | 479 | exit (STATE_OK); |
480 | case 'v': /* verbose */ | 480 | case 'v': /* verbose */ |
481 | verbose = TRUE; | 481 | verbose = TRUE; |
@@ -753,10 +753,9 @@ validate_arguments () | |||
753 | void | 753 | void |
754 | print_help (void) | 754 | print_help (void) |
755 | { | 755 | { |
756 | print_revision (PROGNAME, REVISION); | 756 | print_revision (progname, REVISION); |
757 | printf | 757 | printf |
758 | ("Copyright (c) %s %s <%s>\n\n%s\n", | 758 | ("Copyright (c) %s %s <%s>\n\n%s\n", COPYRIGHT, AUTHOR, EMAIL, SUMMARY); |
759 | COPYRIGHT, AUTHOR, EMAIL, SUMMARY); | ||
760 | print_usage (); | 759 | print_usage (); |
761 | printf | 760 | printf |
762 | ("\nOptions:\n" LONGOPTIONS "\n" DESCRIPTION "\n" NOTES "\n", | 761 | ("\nOptions:\n" LONGOPTIONS "\n" DESCRIPTION "\n" NOTES "\n", |
@@ -771,7 +770,7 @@ print_usage (void) | |||
771 | ("Usage:\n" " %s %s\n" | 770 | ("Usage:\n" " %s %s\n" |
772 | " %s (-h | --help) for detailed help\n" | 771 | " %s (-h | --help) for detailed help\n" |
773 | " %s (-V | --version) for version information\n", | 772 | " %s (-V | --version) for version information\n", |
774 | PROGNAME, OPTIONS, PROGNAME, PROGNAME); | 773 | progname, OPTIONS, progname, progname); |
775 | } | 774 | } |
776 | 775 | ||
777 | 776 | ||