aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2018-10-02 11:15:29 +0200
committerMarcel Raad <Marcel.Raad@teamviewer.com>2018-10-02 11:15:29 +0200
commitc1c092c0b43211d1609188e7a47bd6f7e86c6c0e (patch)
treed6b8a6e22e8d1a8b7b49187e719f726a03244ff5 /lib
parent406d02cd4275f8355acaac632e8e76e1048f67f0 (diff)
doh: fix curl_easy_setopt argument type
CURLOPT_POSTFIELDSIZE is long. Fixes a compiler warning on 64-bit MinGW.
Diffstat (limited to 'lib')
-rw-r--r--lib/doh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/doh.c b/lib/doh.c
index 988f35218..03e28beae 100644
--- a/lib/doh.c
+++ b/lib/doh.c
@@ -229,7 +229,7 @@ static CURLcode dohprobe(struct Curl_easy *data,
ERROR_CHECK_SETOPT(CURLOPT_WRITEDATA, resp);
if(!data->set.doh_get) {
ERROR_CHECK_SETOPT(CURLOPT_POSTFIELDS, p->dohbuffer);
- ERROR_CHECK_SETOPT(CURLOPT_POSTFIELDSIZE, p->dohlen);
+ ERROR_CHECK_SETOPT(CURLOPT_POSTFIELDSIZE, (long)p->dohlen);
}
ERROR_CHECK_SETOPT(CURLOPT_HTTPHEADER, headers);
ERROR_CHECK_SETOPT(CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2TLS);