diff options
Diffstat (limited to 'plugins/check_ssh.c')
-rw-r--r-- | plugins/check_ssh.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c index 4637bce..faaead6 100644 --- a/plugins/check_ssh.c +++ b/plugins/check_ssh.c | |||
@@ -15,7 +15,7 @@ | |||
15 | #include "netutils.h" | 15 | #include "netutils.h" |
16 | #include "utils.h" | 16 | #include "utils.h" |
17 | 17 | ||
18 | #define PROGNAME "check_ssh" | 18 | const char *progname = "check_ssh"; |
19 | #define REVISION "$Revision$" | 19 | #define REVISION "$Revision$" |
20 | 20 | ||
21 | #ifndef MSG_DONTWAIT | 21 | #ifndef MSG_DONTWAIT |
@@ -95,7 +95,7 @@ process_arguments (int argc, char **argv) | |||
95 | case '?': /* help */ | 95 | case '?': /* help */ |
96 | usage (""); | 96 | usage (""); |
97 | case 'V': /* version */ | 97 | case 'V': /* version */ |
98 | print_revision (PROGNAME, REVISION); | 98 | print_revision (progname, REVISION); |
99 | exit (STATE_OK); | 99 | exit (STATE_OK); |
100 | case 'h': /* help */ | 100 | case 'h': /* help */ |
101 | print_help (); | 101 | print_help (); |
@@ -238,7 +238,7 @@ ssh_connect (char *haddr, short hport) | |||
238 | void | 238 | void |
239 | print_help (void) | 239 | print_help (void) |
240 | { | 240 | { |
241 | print_revision (PROGNAME, REVISION); | 241 | print_revision (progname, REVISION); |
242 | printf ("Copyright (c) 1999 Remi Paulmier (remi@sinfomic.fr)\n\n"); | 242 | printf ("Copyright (c) 1999 Remi Paulmier (remi@sinfomic.fr)\n\n"); |
243 | print_usage (); | 243 | print_usage (); |
244 | printf ("by default, port is %d\n", SSH_DFL_PORT); | 244 | printf ("by default, port is %d\n", SSH_DFL_PORT); |
@@ -251,7 +251,7 @@ print_usage (void) | |||
251 | ("Usage:\n" | 251 | ("Usage:\n" |
252 | " %s -t [timeout] -p [port] <host>\n" | 252 | " %s -t [timeout] -p [port] <host>\n" |
253 | " %s -V prints version info\n" | 253 | " %s -V prints version info\n" |
254 | " %s -h prints more detailed help\n", PROGNAME, PROGNAME, PROGNAME); | 254 | " %s -h prints more detailed help\n", progname, progname, progname); |
255 | } | 255 | } |
256 | 256 | ||
257 | /* end of check_ssh.c */ | 257 | /* end of check_ssh.c */ |