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_load.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/check_load.c') diff --git a/plugins/check_load.c b/plugins/check_load.c index 5caffbe8..896e356b 100644 --- a/plugins/check_load.c +++ b/plugins/check_load.c @@ -44,7 +44,7 @@ #endif -#define PROGNAME "check_load" +const char *progname = "check_load"; int process_arguments (int argc, char **argv); int validate_arguments (void); @@ -212,7 +212,7 @@ process_arguments (int argc, char **argv) usage ("Critical threshold must be float or float triplet!\n"); break; case 'V': /* version */ - print_revision (my_basename (argv[0]), "$Revision$"); + print_revision (progname, "$Revision$"); exit (STATE_OK); case 'h': /* help */ print_help (); @@ -303,7 +303,7 @@ print_usage (void) void print_help (void) { - print_revision (PROGNAME, "$Revision$"); + print_revision (progname, "$Revision$"); printf ("Copyright (c) 1999 Felipe Gustavo de Almeida \n" "Copyright (c) 2000 Karl DeBisschop\n\n" -- cgit v1.2.3-74-g34f1