summaryrefslogtreecommitdiffstats
path: root/plugins/check_real.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_real.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_real.c')
-rw-r--r--plugins/check_real.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/check_real.c b/plugins/check_real.c
index c553352..a910937 100644
--- a/plugins/check_real.c
+++ b/plugins/check_real.c
@@ -48,7 +48,7 @@
48#include "netutils.h" 48#include "netutils.h"
49#include "utils.h" 49#include "utils.h"
50 50
51#define PROGNAME "check_real" 51const char *progname = "check_real";
52 52
53#define PORT 554 53#define PORT 554
54#define EXPECT "RTSP/1." 54#define EXPECT "RTSP/1."
@@ -370,7 +370,7 @@ process_arguments (int argc, char **argv)
370 } 370 }
371 break; 371 break;
372 case 'V': /* version */ 372 case 'V': /* version */
373 print_revision (PROGNAME, "$Revision$"); 373 print_revision (progname, "$Revision$");
374 exit (STATE_OK); 374 exit (STATE_OK);
375 case 'h': /* help */ 375 case 'h': /* help */
376 print_help (); 376 print_help ();
@@ -410,7 +410,7 @@ validate_arguments (void)
410void 410void
411print_help (void) 411print_help (void)
412{ 412{
413 print_revision (PROGNAME, "$Revision$"); 413 print_revision (progname, "$Revision$");
414 printf 414 printf
415 ("Copyright (c) 2000 Pedro Leite (leite@cic.ua.pt)/Karl DeBisschop\n\n" 415 ("Copyright (c) 2000 Pedro Leite (leite@cic.ua.pt)/Karl DeBisschop\n\n"
416 "This plugin tests the REAL service on the specified host.\n\n"); 416 "This plugin tests the REAL service on the specified host.\n\n");
@@ -454,7 +454,7 @@ print_usage (void)
454 ("Usage: %s -H host [-e expect] [-p port] [-w warn] [-c crit]\n" 454 ("Usage: %s -H host [-e expect] [-p port] [-w warn] [-c crit]\n"
455 " [-t timeout] [-v]\n" 455 " [-t timeout] [-v]\n"
456 " %s --help\n" 456 " %s --help\n"
457 " %s --version\n", PROGNAME, PROGNAME, PROGNAME); 457 " %s --version\n", progname, progname, progname);
458} 458}
459 459
460 460