diff options
author | Yang Tse <yangsita@gmail.com> | 2011-05-23 12:57:23 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2011-05-23 12:57:23 +0200 |
commit | bed6b89a2fb4f8a1279adc6a8f823b3e2d8a726f (patch) | |
tree | 914c2275d45a67f2f9e97df019eacfb9934ad71d | |
parent | 3e70c28ce5e1130d90e5aaba7262fcd6d780207a (diff) |
compiler warning: fix
Fix compiler warning: unused variable 'data'
-rw-r--r-- | lib/ssh.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -509,10 +509,11 @@ static int sshkeycallback(CURL *easy, static CURLcode ssh_knownhost(struct connectdata *conn) { - struct SessionHandle *data = conn->data; CURLcode result = CURLE_OK; #ifdef HAVE_LIBSSH2_KNOWNHOST_API + struct SessionHandle *data = conn->data; + if(data->set.str[STRING_SSH_KNOWNHOSTS]) { /* we're asked to verify the host against a file */ struct ssh_conn *sshc = &conn->proto.sshc; |