summaryrefslogtreecommitdiffstats
path: root/plugins/check_swap.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_swap.c')
-rw-r--r--plugins/check_swap.c8
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" 32const 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)
346void 346void
347print_help (void) 347print_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 ();