summaryrefslogtreecommitdiffstats
path: root/plugins/check_udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_udp.c')
-rw-r--r--plugins/check_udp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/check_udp.c b/plugins/check_udp.c
index f6b528d..8626f8c 100644
--- a/plugins/check_udp.c
+++ b/plugins/check_udp.c
@@ -41,7 +41,7 @@
41#include "netutils.h" 41#include "netutils.h"
42#include "utils.h" 42#include "utils.h"
43 43
44#define PROGNAME "check_udp" 44const char *progname = "check_udp";
45 45
46int warning_time = 0; 46int warning_time = 0;
47int check_warning_time = FALSE; 47int check_warning_time = FALSE;
@@ -163,14 +163,14 @@ process_arguments (int argc, char **argv)
163 163
164 switch (c) { 164 switch (c) {
165 case '?': /* print short usage statement if args not parsable */ 165 case '?': /* print short usage statement if args not parsable */
166 printf ("%s: Unknown argument: %s\n\n", my_basename (argv[0]), optarg); 166 printf ("%s: Unknown argument: %s\n\n", progname, optarg);
167 print_usage (); 167 print_usage ();
168 exit (STATE_UNKNOWN); 168 exit (STATE_UNKNOWN);
169 case 'h': /* help */ 169 case 'h': /* help */
170 print_help (); 170 print_help ();
171 exit (STATE_OK); 171 exit (STATE_OK);
172 case 'V': /* version */ 172 case 'V': /* version */
173 print_revision (my_basename (argv[0]), "$Revision$"); 173 print_revision (progname, "$Revision$");
174 exit (STATE_OK); 174 exit (STATE_OK);
175 case 'v': /* verbose mode */ 175 case 'v': /* verbose mode */
176 verbose = TRUE; 176 verbose = TRUE;
@@ -233,7 +233,7 @@ print_usage (void)
233{ 233{
234 printf 234 printf
235 ("Usage: %s -H <host_address> [-p port] [-w warn_time] [-c crit_time]\n" 235 ("Usage: %s -H <host_address> [-p port] [-w warn_time] [-c crit_time]\n"
236 " [-e expect] [-s send] [-t to_sec] [-v]\n", PROGNAME); 236 " [-e expect] [-s send] [-t to_sec] [-v]\n", progname);
237} 237}
238 238
239 239
@@ -243,7 +243,7 @@ print_usage (void)
243void 243void
244print_help (void) 244print_help (void)
245{ 245{
246 print_revision (PROGNAME, "$Revision$"); 246 print_revision (progname, "$Revision$");
247 printf 247 printf
248 ("Copyright (c) 1999 Ethan Galstad (nagios@nagios.org)\n\n" 248 ("Copyright (c) 1999 Ethan Galstad (nagios@nagios.org)\n\n"
249 "This plugin tests an UDP connection with the specified host.\n\n"); 249 "This plugin tests an UDP connection with the specified host.\n\n");