diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-06-07 10:46:50 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-06-07 10:46:50 -0700 |
| commit | 8546b3566e70728a561f009c8ff936c68ed16fd5 (patch) | |
| tree | 94e7c02350b23ee8ce5437a745dca422d2fbdd6d /http-push.c | |
| parent | 7558d894231744aa0cb0ea95a0b5b177b3f106a0 (diff) | |
| parent | 229d12665edb555df26653cf4a4731ae71c71a6d (diff) | |
| download | git-8546b3566e70728a561f009c8ff936c68ed16fd5.tar.gz | |
Merge branch 'js/curl-easy-setopt-typefix'
Adjust to newer version of libcURL.
* js/curl-easy-setopt-typefix:
curl: pass `long` values where expected
Diffstat (limited to 'http-push.c')
| -rw-r--r-- | http-push.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/http-push.c b/http-push.c index 591e46ab26..f5a92529a8 100644 --- a/http-push.c +++ b/http-push.c @@ -205,7 +205,7 @@ static void curl_setup_http(CURL *curl, const char *url, const char *custom_req, struct buffer *buffer, curl_write_callback write_fn) { - curl_easy_setopt(curl, CURLOPT_UPLOAD, 1); + curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L); curl_easy_setopt(curl, CURLOPT_URL, url); curl_easy_setopt(curl, CURLOPT_INFILE, buffer); curl_easy_setopt(curl, CURLOPT_INFILESIZE, buffer->buf.len); @@ -213,9 +213,9 @@ static void curl_setup_http(CURL *curl, const char *url, curl_easy_setopt(curl, CURLOPT_SEEKFUNCTION, seek_buffer); curl_easy_setopt(curl, CURLOPT_SEEKDATA, buffer); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_fn); - curl_easy_setopt(curl, CURLOPT_NOBODY, 0); + curl_easy_setopt(curl, CURLOPT_NOBODY, 0L); curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, custom_req); - curl_easy_setopt(curl, CURLOPT_UPLOAD, 1); + curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L); } static struct curl_slist *get_dav_token_headers(struct remote_lock *lock, enum dav_header_flag options) |
