diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-06-05 08:56:57 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-06-05 08:56:57 -0700 |
| commit | c80760403b9bd2bc16a03168a972c47519004ea0 (patch) | |
| tree | 27fff34d35f3cd5e09fde6cbe282b3d446adb931 /remote-curl.c | |
| parent | 0d42fbd9a1f30c63cf0359a1c5aaa77020972f72 (diff) | |
| parent | 4558c8f84b2f8d3ba1483727bcb49935ae8ff595 (diff) | |
| download | git-c80760403b9bd2bc16a03168a972c47519004ea0.tar.gz | |
Merge branch 'jk/curl-easy-setopt-typefix' into js/curl-easy-setopt-typefix
* jk/curl-easy-setopt-typefix:
curl: fix symbolic constant typechecks with curl_easy_setopt()
curl: fix integer variable typechecks with curl_easy_setopt()
curl: fix integer constant typechecks with curl_easy_setopt()
Diffstat (limited to 'remote-curl.c')
| -rw-r--r-- | remote-curl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/remote-curl.c b/remote-curl.c index 590b228f67..6183772191 100644 --- a/remote-curl.c +++ b/remote-curl.c @@ -877,12 +877,12 @@ static int probe_rpc(struct rpc_state *rpc, struct slot_results *results) headers = curl_slist_append(headers, rpc->hdr_content_type); headers = curl_slist_append(headers, rpc->hdr_accept); - curl_easy_setopt(slot->curl, CURLOPT_NOBODY, 0); - curl_easy_setopt(slot->curl, CURLOPT_POST, 1); + curl_easy_setopt(slot->curl, CURLOPT_NOBODY, 0L); + curl_easy_setopt(slot->curl, CURLOPT_POST, 1L); curl_easy_setopt(slot->curl, CURLOPT_URL, rpc->service_url); curl_easy_setopt(slot->curl, CURLOPT_ENCODING, NULL); curl_easy_setopt(slot->curl, CURLOPT_POSTFIELDS, "0000"); - curl_easy_setopt(slot->curl, CURLOPT_POSTFIELDSIZE, 4); + curl_easy_setopt(slot->curl, CURLOPT_POSTFIELDSIZE, 4L); curl_easy_setopt(slot->curl, CURLOPT_HTTPHEADER, headers); curl_easy_setopt(slot->curl, CURLOPT_WRITEFUNCTION, fwrite_buffer); curl_easy_setopt(slot->curl, CURLOPT_WRITEDATA, &buf); |
