summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2019-02-06 14:59:15 +0100
committerMarcel Raad <Marcel.Raad@teamviewer.com>2019-02-07 18:36:53 +0100
commit91e397b24297055fdc49916b5ce901d63745dd5e (patch)
treeba376b2be1350ded26a5d3aaed6ceda5aaf7df75 /src
parent927a5bd1b4f95fe2331c9d9923c620ba8e274d6c (diff)
downloadcurl-91e397b24297055fdc49916b5ce901d63745dd5e.tar.gz
tool_operate: fix typecheck warning
Use long for CURLOPT_HTTP09_ALLOWED to fix the following warning: tool_operate.c: In function 'operate_do': ../include/curl/typecheck-gcc.h:47:9: error: call to '_curl_easy_setopt_err_long' declared with attribute warning: curl_easy_setopt expects a long argument for this option [-Werror] Closes https://github.com/curl/curl/pull/3534
Diffstat (limited to 'src')
-rw-r--r--src/tool_operate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c
index 4516c8e6a..7d58dde27 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -1006,7 +1006,8 @@ static CURLcode operate_do(struct GlobalConfig *global,
if(config->tr_encoding)
my_setopt(curl, CURLOPT_TRANSFER_ENCODING, 1L);
/* new in libcurl 7.64.0 */
- my_setopt(curl, CURLOPT_HTTP09_ALLOWED, config->http09_allowed);
+ my_setopt(curl, CURLOPT_HTTP09_ALLOWED,
+ config->http09_allowed ? 1L : 0L);
} /* (built_in_protos & CURLPROTO_HTTP) */