From: Marcel Raad Date: Tue, 2 Oct 2018 09:15:29 +0000 (+0200) Subject: doh: fix curl_easy_setopt argument type X-Git-Tag: curl-7_62_0~119 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1c092c0b43211d1609188e7a47bd6f7e86c6c0e;p=thirdparty%2Fcurl.git doh: fix curl_easy_setopt argument type CURLOPT_POSTFIELDSIZE is long. Fixes a compiler warning on 64-bit MinGW. --- diff --git a/lib/doh.c b/lib/doh.c index 988f352180..03e28beae0 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);