diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-01-13 12:15:16 (GMT) |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-01-13 12:15:16 (GMT) |
commit | 0c3386274ef5002dffc20337ef02407f24d7400c (patch) | |
tree | 1e78bac7844a548e56a642b35acfe1fd67342f71 /plugins/check_load.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_load.c')
-rw-r--r-- | plugins/check_load.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_load.c b/plugins/check_load.c index 5caffbe..896e356 100644 --- a/plugins/check_load.c +++ b/plugins/check_load.c | |||
@@ -44,7 +44,7 @@ | |||
44 | 44 | ||
45 | #endif | 45 | #endif |
46 | 46 | ||
47 | #define PROGNAME "check_load" | 47 | const char *progname = "check_load"; |
48 | 48 | ||
49 | int process_arguments (int argc, char **argv); | 49 | int process_arguments (int argc, char **argv); |
50 | int validate_arguments (void); | 50 | int validate_arguments (void); |
@@ -212,7 +212,7 @@ process_arguments (int argc, char **argv) | |||
212 | usage ("Critical threshold must be float or float triplet!\n"); | 212 | usage ("Critical threshold must be float or float triplet!\n"); |
213 | break; | 213 | break; |
214 | case 'V': /* version */ | 214 | case 'V': /* version */ |
215 | print_revision (my_basename (argv[0]), "$Revision$"); | 215 | print_revision (progname, "$Revision$"); |
216 | exit (STATE_OK); | 216 | exit (STATE_OK); |
217 | case 'h': /* help */ | 217 | case 'h': /* help */ |
218 | print_help (); | 218 | print_help (); |
@@ -303,7 +303,7 @@ print_usage (void) | |||
303 | void | 303 | void |
304 | print_help (void) | 304 | print_help (void) |
305 | { | 305 | { |
306 | print_revision (PROGNAME, "$Revision$"); | 306 | print_revision (progname, "$Revision$"); |
307 | printf | 307 | printf |
308 | ("Copyright (c) 1999 Felipe Gustavo de Almeida <galmeida@linux.ime.usp.br>\n" | 308 | ("Copyright (c) 1999 Felipe Gustavo de Almeida <galmeida@linux.ime.usp.br>\n" |
309 | "Copyright (c) 2000 Karl DeBisschop\n\n" | 309 | "Copyright (c) 2000 Karl DeBisschop\n\n" |