summaryrefslogtreecommitdiffstats
path: root/plugins/check_ssh.c
diff options
context:
space:
mode:
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-01-13 12:15:16 +0000
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-01-13 12:15:16 +0000
commit0c3386274ef5002dffc20337ef02407f24d7400c (patch)
tree1e78bac7844a548e56a642b35acfe1fd67342f71 /plugins/check_ssh.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_ssh.c')
-rw-r--r--plugins/check_ssh.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c
index 4637bcee..faaead6a 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" 18const 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)
238void 238void
239print_help (void) 239print_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 */