From c1c092c0b43211d1609188e7a47bd6f7e86c6c0e Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Tue, 2 Oct 2018 11:15:29 +0200 Subject: [PATCH] doh: fix curl_easy_setopt argument type CURLOPT_POSTFIELDSIZE is long. Fixes a compiler warning on 64-bit MinGW. --- lib/doh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.40.0