summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2020-01-15 20:28:01 +0100
committerMarcel Raad <Marcel.Raad@teamviewer.com>2020-01-16 10:03:59 +0100
commit6f69edf962b6443d0fcd1a279dd9ef971b4a1581 (patch)
tree200aeafff33edf5428c0a3f6382b8c136f69e250
parentc2feed05bca2a95b4841a71e66c2f7f935386fa9 (diff)
downloadcurl-6f69edf962b6443d0fcd1a279dd9ef971b4a1581.tar.gz
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
-rw-r--r--lib/vssh/libssh2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vssh/libssh2.c b/lib/vssh/libssh2.c
index cdbfa7b40..92cb65132 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;