summaryrefslogtreecommitdiffstats
path: root/plugins/check_dns.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_dns.c')
-rw-r--r--plugins/check_dns.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/check_dns.c b/plugins/check_dns.c
index 714ecab..3462701 100644
--- a/plugins/check_dns.c
+++ b/plugins/check_dns.c
@@ -48,7 +48,7 @@
48#include "popen.h" 48#include "popen.h"
49#include "utils.h" 49#include "utils.h"
50 50
51#define PROGNAME "check_dns" 51const char *progname = "check_dns";
52#define REVISION "$Revision$" 52#define REVISION "$Revision$"
53#define COPYRIGHT "2000-2002" 53#define COPYRIGHT "2000-2002"
54 54
@@ -292,14 +292,14 @@ process_arguments (int argc, char **argv)
292 292
293 switch (c) { 293 switch (c) {
294 case '?': /* args not parsable */ 294 case '?': /* args not parsable */
295 printf ("%s: Unknown argument: %s\n\n", PROGNAME, optarg); 295 printf ("%s: Unknown argument: %s\n\n", progname, optarg);
296 print_usage (); 296 print_usage ();
297 exit (STATE_UNKNOWN); 297 exit (STATE_UNKNOWN);
298 case 'h': /* help */ 298 case 'h': /* help */
299 print_help (); 299 print_help ();
300 exit (STATE_OK); 300 exit (STATE_OK);
301 case 'V': /* version */ 301 case 'V': /* version */
302 print_revision (PROGNAME, REVISION); 302 print_revision (progname, REVISION);
303 exit (STATE_OK); 303 exit (STATE_OK);
304 case 'v': /* version */ 304 case 'v': /* version */
305 verbose = TRUE; 305 verbose = TRUE;
@@ -388,13 +388,13 @@ void
388print_usage (void) 388print_usage (void)
389{ 389{
390 printf ("Usage: %s -H host [-s server] [-a expected-address] [-t timeout]\n" " %s --help\n" 390 printf ("Usage: %s -H host [-s server] [-a expected-address] [-t timeout]\n" " %s --help\n"
391 " %s --version\n", PROGNAME, PROGNAME, PROGNAME); 391 " %s --version\n", progname, progname, progname);
392} 392}
393 393
394void 394void
395print_help (void) 395print_help (void)
396{ 396{
397 print_revision (PROGNAME, REVISION); 397 print_revision (progname, REVISION);
398 printf ("Copyright (c) 1999 Ethan Galstad (nagios@nagios.org)\n\n"); 398 printf ("Copyright (c) 1999 Ethan Galstad (nagios@nagios.org)\n\n");
399 print_usage (); 399 print_usage ();
400 printf 400 printf