From ee2bee88eedb7799bcd70e78eefa2205ff05a719 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Wed, 14 Apr 2010 21:20:42 +0200 Subject: Fix warnings --- libssh/client.c | 1 - libssh/config.c | 4 +++- libssh/misc.c | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'libssh') diff --git a/libssh/client.c b/libssh/client.c index d8ff6850..0d34a8b3 100644 --- a/libssh/client.c +++ b/libssh/client.c @@ -390,7 +390,6 @@ error: static int dh_handshake(ssh_session session) { ssh_string e = NULL; ssh_string f = NULL; - ssh_string pubkey = NULL; ssh_string signature = NULL; int rc = SSH_ERROR; diff --git a/libssh/config.c b/libssh/config.c index ae794bdc..375ed715 100644 --- a/libssh/config.c +++ b/libssh/config.c @@ -27,6 +27,7 @@ #include "libssh/priv.h" #include "libssh/session.h" +#include "libssh/misc.h" enum ssh_config_opcode_e { SOC_UNSUPPORTED = -1, @@ -158,6 +159,7 @@ static int ssh_config_parse_line(ssh_session session, const char *line, const char *p; char *s, *x; char *keyword; + char *lowerhost; size_t len; int i; @@ -187,7 +189,7 @@ static int ssh_config_parse_line(ssh_session session, const char *line, switch (opcode) { case SOC_HOST: *parsing = 0; - char* lowerhost = (session->host) ? ssh_lowercase(session->host) : NULL; + lowerhost = (session->host) ? ssh_lowercase(session->host) : NULL; for (p = ssh_config_get_str(&s, NULL); p && *p; p = ssh_config_get_str(&s, NULL)) { if (match_hostname(lowerhost, p, strlen(p))) { diff --git a/libssh/misc.c b/libssh/misc.c index 4489eb69..6ae391f9 100644 --- a/libssh/misc.c +++ b/libssh/misc.c @@ -30,7 +30,7 @@ #include #include #include - +#include #ifdef _WIN32 #define _WIN32_IE 0x0501 //SHGetSpecialFolderPath -- cgit v1.2.3