From: Marcel Raad Date: Wed, 15 Jan 2020 19:28:01 +0000 (+0100) Subject: libssh2: fix variable type X-Git-Tag: curl-7_69_0~198 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f69edf962b6443d0fcd1a279dd9ef971b4a1581;p=thirdparty%2Fcurl.git libssh2: fix variable type This led to a conversion warning on 64-bit MinGW, which has 32-bit `long` but 64-bit `size_t`. Closes https://github.com/curl/curl/pull/4823 --- diff --git a/lib/vssh/libssh2.c b/lib/vssh/libssh2.c index cdbfa7b408..92cb651328 100644 --- a/lib/vssh/libssh2.c +++ b/lib/vssh/libssh2.c @@ -685,7 +685,7 @@ static CURLcode ssh_force_knownhost_key_type(struct connectdata *conn) struct Curl_easy *data = conn->data; struct libssh2_knownhost* store = NULL; const char *kh_name_end = NULL; - long unsigned int kh_name_size = 0; + size_t kh_name_size = 0; int port = 0; bool found = false;