Commit bed6b89a authored by Yang Tse's avatar Yang Tse
Browse files

compiler warning: fix

Fix compiler warning: unused variable 'data'
parent 3e70c28c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;