summaryrefslogtreecommitdiffstats
path: root/plugins/check_snmp.c
diff options
context:
space:
mode:
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-01-13 12:15:16 (GMT)
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-01-13 12:15:16 (GMT)
commit0c3386274ef5002dffc20337ef02407f24d7400c (patch)
tree1e78bac7844a548e56a642b35acfe1fd67342f71 /plugins/check_snmp.c
parentde5650f28e4e43a7264913953f95a75d8afe23f0 (diff)
downloadmonitoring-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_snmp.c')
-rw-r--r--plugins/check_snmp.c11
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" 26const 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 ()
753void 753void
754print_help (void) 754print_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