]> granicus.if.org Git - curl/commitdiff
compiler warning: fix
authorYang Tse <yangsita@gmail.com>
Mon, 23 May 2011 10:57:23 +0000 (12:57 +0200)
committerYang Tse <yangsita@gmail.com>
Mon, 23 May 2011 10:57:23 +0000 (12:57 +0200)
Fix compiler warning: unused variable 'data'

lib/ssh.c

index 7f42c7ea8681d794377fe085da758df6256dc5be..a26b51be4649be0cc1fc654d5d3d820e02d771d8 100644 (file)
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -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;