diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-01-13 12:21:51 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-01-13 12:21:51 +0000 |
commit | 7f7188e8de0a21d7846d0b0abcaa9fd38208ffbc (patch) | |
tree | ab6a39da587c49d6261eafcd7b2e0ccde74f26a0 /contrib/check_rbl.c | |
parent | 0c3386274ef5002dffc20337ef02407f24d7400c (diff) | |
download | monitoring-plugins-7f7188e8de0a21d7846d0b0abcaa9fd38208ffbc.tar.gz |
convert PROGANE from a define to a const char
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@239 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'contrib/check_rbl.c')
-rw-r--r-- | contrib/check_rbl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/check_rbl.c b/contrib/check_rbl.c index 5c661135..69fdd23c 100644 --- a/contrib/check_rbl.c +++ b/contrib/check_rbl.c | |||
@@ -21,7 +21,7 @@ | |||
21 | #include "popen.h" | 21 | #include "popen.h" |
22 | #include "string.h" | 22 | #include "string.h" |
23 | 23 | ||
24 | #define PROGNAME "check_rbl" | 24 | const char progname = "check_rbl"; |
25 | 25 | ||
26 | int process_arguments(int, char **); | 26 | int process_arguments(int, char **); |
27 | int call_getopt(int, char **); | 27 | int call_getopt(int, char **); |
@@ -260,7 +260,7 @@ int call_getopt(int argc, char **argv) | |||
260 | } | 260 | } |
261 | break; | 261 | break; |
262 | case 'V': /* version */ | 262 | case 'V': /* version */ |
263 | print_revision(PROGNAME,"$Revision$"); | 263 | print_revision(progname,"$Revision$"); |
264 | exit(STATE_OK); | 264 | exit(STATE_OK); |
265 | case 'h': /* help */ | 265 | case 'h': /* help */ |
266 | print_help(); | 266 | print_help(); |
@@ -290,7 +290,7 @@ int validate_arguments(void) | |||
290 | 290 | ||
291 | void print_help(void) | 291 | void print_help(void) |
292 | { | 292 | { |
293 | print_revision(PROGNAME,"$Revision$"); | 293 | print_revision(progname,"$Revision$"); |
294 | printf | 294 | printf |
295 | ("Copyright (c) 2000 Karl DeBisschop\n\n" | 295 | ("Copyright (c) 2000 Karl DeBisschop\n\n" |
296 | "This plugin uses dig to test whether the specified host is on any RBL lists.\n\n"); | 296 | "This plugin uses dig to test whether the specified host is on any RBL lists.\n\n"); |
@@ -325,5 +325,5 @@ void print_usage(void) | |||
325 | ("Usage: %s -H hostip -r rblname [-s server] [-t timeout] [-v]\n" | 325 | ("Usage: %s -H hostip -r rblname [-s server] [-t timeout] [-v]\n" |
326 | " %s --help\n" | 326 | " %s --help\n" |
327 | " %s --version\n", | 327 | " %s --version\n", |
328 | PROGNAME,PROGNAME,PROGNAME); | 328 | progname, progname, progname); |
329 | } | 329 | } |