diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-01-13 12:15:16 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-01-13 12:15:16 +0000 |
commit | 0c3386274ef5002dffc20337ef02407f24d7400c (patch) | |
tree | 1e78bac7844a548e56a642b35acfe1fd67342f71 /plugins/check_swap.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_swap.c')
-rw-r--r-- | plugins/check_swap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/check_swap.c b/plugins/check_swap.c index 968779dc..b213c964 100644 --- a/plugins/check_swap.c +++ b/plugins/check_swap.c | |||
@@ -29,7 +29,7 @@ | |||
29 | #include "popen.h" | 29 | #include "popen.h" |
30 | #include "utils.h" | 30 | #include "utils.h" |
31 | 31 | ||
32 | #define PROGNAME "check_swap" | 32 | const char *progname = "check_swap"; |
33 | #define REVISION "$Revision$" | 33 | #define REVISION "$Revision$" |
34 | #define COPYRIGHT "2000-2002" | 34 | #define COPYRIGHT "2000-2002" |
35 | #define AUTHOR "Karl DeBisschop" | 35 | #define AUTHOR "Karl DeBisschop" |
@@ -267,7 +267,7 @@ process_arguments (int argc, char **argv) | |||
267 | verbose = TRUE; | 267 | verbose = TRUE; |
268 | break; | 268 | break; |
269 | case 'V': /* version */ | 269 | case 'V': /* version */ |
270 | print_revision (my_basename (argv[0]), "$Revision$"); | 270 | print_revision (progname, "$Revision$"); |
271 | exit (STATE_OK); | 271 | exit (STATE_OK); |
272 | case 'h': /* help */ | 272 | case 'h': /* help */ |
273 | print_help (); | 273 | print_help (); |
@@ -336,7 +336,7 @@ print_usage (void) | |||
336 | " %s [-a] -w <bytes_free> -c <bytes_free>\n" | 336 | " %s [-a] -w <bytes_free> -c <bytes_free>\n" |
337 | " %s (-h | --help) for detailed help\n" | 337 | " %s (-h | --help) for detailed help\n" |
338 | " %s (-V | --version) for version information\n", | 338 | " %s (-V | --version) for version information\n", |
339 | PROGNAME, PROGNAME, PROGNAME, PROGNAME); | 339 | progname, progname, progname, progname); |
340 | } | 340 | } |
341 | 341 | ||
342 | 342 | ||
@@ -346,7 +346,7 @@ print_usage (void) | |||
346 | void | 346 | void |
347 | print_help (void) | 347 | print_help (void) |
348 | { | 348 | { |
349 | print_revision (PROGNAME, REVISION); | 349 | print_revision (progname, REVISION); |
350 | printf | 350 | printf |
351 | ("Copyright (c) %s %s <%s>\n\n%s\n", COPYRIGHT, AUTHOR, EMAIL, SUMMARY); | 351 | ("Copyright (c) %s %s <%s>\n\n%s\n", COPYRIGHT, AUTHOR, EMAIL, SUMMARY); |
352 | print_usage (); | 352 | print_usage (); |