aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_ssh.c
diff options
context:
space:
mode:
authorGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2003-08-09 13:36:49 +0000
committerGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2003-08-09 13:36:49 +0000
commit90b45deb4138efb47efbdd98a4aede1aebb47146 (patch)
treed27a0180ce89542ee546a0b1e958b68a114ea7ce /plugins/check_ssh.c
parent4784cac1f017a67978c2f3f2af75b161d1ef33c0 (diff)
downloadmonitoring-plugins-90b45deb4138efb47efbdd98a4aede1aebb47146.tar.gz
more pedantic compiler warnings
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@674 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_ssh.c')
-rw-r--r--plugins/check_ssh.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c
index 7fcb8119..fdded583 100644
--- a/plugins/check_ssh.c
+++ b/plugins/check_ssh.c
@@ -32,7 +32,7 @@ const char *email = "nagiosplug-devel@lists.sourceforge.net";
#define SSH_DFL_PORT 22
#define BUFF_SZ 256
-short port = -1;
+int port = -1;
char *server_name = NULL;
int verbose = FALSE;
@@ -41,7 +41,7 @@ int validate_arguments (void);
void print_help (void);
void print_usage (void);
-int ssh_connect (char *haddr, short hport);
+int ssh_connect (char *haddr, int hport);
int
main (int argc, char **argv)
@@ -111,7 +111,8 @@ process_arguments (int argc, char **argv)
case 't': /* timeout period */
if (!is_integer (optarg))
usage (_("Timeout Interval must be an integer!\n\n"));
- socket_timeout = atoi (optarg);
+ else
+ socket_timeout = atoi (optarg);
break;
case '4':
address_family = AF_INET;
@@ -178,7 +179,7 @@ validate_arguments (void)
*-----------------------------------------------------------------------*/
int
-ssh_connect (char *haddr, short hport)
+ssh_connect (char *haddr, int hport)
{
int sd;
int result;