summaryrefslogtreecommitdiffstats
path: root/plugins/check_hpjd.c
diff options
context:
space:
mode:
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-01-13 12:15:16 (GMT)
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-01-13 12:15:16 (GMT)
commit0c3386274ef5002dffc20337ef02407f24d7400c (patch)
tree1e78bac7844a548e56a642b35acfe1fd67342f71 /plugins/check_hpjd.c
parentde5650f28e4e43a7264913953f95a75d8afe23f0 (diff)
downloadmonitoring-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_hpjd.c')
-rw-r--r--plugins/check_hpjd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/check_hpjd.c b/plugins/check_hpjd.c
index 42b4bb5..a262fc2 100644
--- a/plugins/check_hpjd.c
+++ b/plugins/check_hpjd.c
@@ -65,7 +65,7 @@
65#include "popen.h" 65#include "popen.h"
66#include "utils.h" 66#include "utils.h"
67 67
68#define PROGNAME "check_hpjd" 68const char *progname = "check_hpjd"
69#define REVISION "$Revision$" 69#define REVISION "$Revision$"
70#define COPYRIGHT "2000-2002" 70#define COPYRIGHT "2000-2002"
71 71
@@ -438,7 +438,7 @@ process_arguments (int argc, char **argv)
438 community = optarg; 438 community = optarg;
439 break; 439 break;
440 case 'V': /* version */ 440 case 'V': /* version */
441 print_revision (PROGNAME, REVISION); 441 print_revision (progname, REVISION);
442 exit (STATE_OK); 442 exit (STATE_OK);
443 case 'h': /* help */ 443 case 'h': /* help */
444 print_help (); 444 print_help ();
@@ -482,7 +482,7 @@ validate_arguments (void)
482void 482void
483print_help (void) 483print_help (void)
484{ 484{
485 print_revision (PROGNAME, REVISION); 485 print_revision (progname, REVISION);
486 printf 486 printf
487 ("Copyright (c) 2000 Ethan Galstad/Karl DeBisschop\n\n" 487 ("Copyright (c) 2000 Ethan Galstad/Karl DeBisschop\n\n"
488 "This plugin tests the STATUS of an HP printer with a JetDirect card.\n" 488 "This plugin tests the STATUS of an HP printer with a JetDirect card.\n"
@@ -510,7 +510,7 @@ print_usage (void)
510 printf 510 printf
511 ("Usage: %s -H host [-C community]\n" 511 ("Usage: %s -H host [-C community]\n"
512 " %s --help\n" 512 " %s --help\n"
513 " %s --version\n", PROGNAME, PROGNAME, PROGNAME); 513 " %s --version\n", progname, progname, progname);
514} 514}
515 515
516 516