From 0c3386274ef5002dffc20337ef02407f24d7400c Mon Sep 17 00:00:00 2001 From: Karl DeBisschop Date: Mon, 13 Jan 2003 12:15:16 +0000 Subject: 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 --- plugins/check_procs.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'plugins/check_procs.c') diff --git a/plugins/check_procs.c b/plugins/check_procs.c index 967b4de7..3849c776 100644 --- a/plugins/check_procs.c +++ b/plugins/check_procs.c @@ -34,7 +34,7 @@ * ******************************************************************************/ -#define PROGNAME "check_snmp" +const char *progname = "check_snmp"; #define REVISION "$Revision$" #define COPYRIGHT "1999-2002" #define AUTHOR "Ethan Galstad" @@ -298,12 +298,12 @@ process_arguments (int argc, char **argv) print_help (); exit (STATE_OK); case 'V': /* version */ - print_revision (PROGNAME, REVISION); + print_revision (progname, REVISION); exit (STATE_OK); case 't': /* timeout period */ if (!is_integer (optarg)) { printf ("%s: Timeout Interval must be an integer!\n\n", - my_basename (argv[0])); + progname); print_usage (); exit (STATE_UNKNOWN); } @@ -325,7 +325,7 @@ process_arguments (int argc, char **argv) } else { printf ("%s: Critical Process Count must be an integer!\n\n", - my_basename (argv[0])); + progname); print_usage (); exit (STATE_UNKNOWN); } @@ -345,7 +345,7 @@ process_arguments (int argc, char **argv) } else { printf ("%s: Warning Process Count must be an integer!\n\n", - my_basename (argv[0])); + progname); print_usage (); exit (STATE_UNKNOWN); } @@ -356,7 +356,7 @@ process_arguments (int argc, char **argv) break; } printf ("%s: Parent Process ID must be an integer!\n\n", - my_basename (argv[0])); + progname); print_usage (); exit (STATE_UNKNOWN); case 's': /* status */ @@ -462,7 +462,7 @@ if (wmax >= 0 && wmin == -1) void print_help (void) { - print_revision (PROGNAME, REVISION); + print_revision (progname, REVISION); printf ("Copyright (c) %s %s <%s>\n\n%s\n", COPYRIGHT, AUTHOR, EMAIL, SUMMARY); -- cgit v1.2.3