diff options
author | Marcel Raad <Marcel.Raad@teamviewer.com> | 2018-10-02 11:15:29 +0200 |
---|---|---|
committer | Marcel Raad <Marcel.Raad@teamviewer.com> | 2018-10-02 11:15:29 +0200 |
commit | c1c092c0b43211d1609188e7a47bd6f7e86c6c0e (patch) | |
tree | d6b8a6e22e8d1a8b7b49187e719f726a03244ff5 /lib/doh.c | |
parent | 406d02cd4275f8355acaac632e8e76e1048f67f0 (diff) | |
download | curl-c1c092c0b43211d1609188e7a47bd6f7e86c6c0e.tar.gz |
doh: fix curl_easy_setopt argument type
CURLOPT_POSTFIELDSIZE is long. Fixes a compiler warning on 64-bit
MinGW.
Diffstat (limited to 'lib/doh.c')
-rw-r--r-- | lib/doh.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |