summaryrefslogtreecommitdiff
path: root/http.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-01-20 15:36:21 -0800
committerJohannes Schindelin <johannes.schindelin@gmx.de>2023-02-06 09:27:41 +0100
commitbd6d3de01fdc6fcf040a22718673766e754631b5 (patch)
tree3dd46f22732bb5eee03d75df6f918dfff5fd88be /http.h
parentf39fe8fcb269e0b7ec48f2ea57fcb879908ac447 (diff)
parentf44e6a21057b0d8aae7c36f10537353330813f62 (diff)
downloadgit-bd6d3de01fdc6fcf040a22718673766e754631b5.tar.xz
Merge branch 'jk/curl-avoid-deprecated-api'
Deal with a few deprecation warning from cURL library. * jk/curl-avoid-deprecated-api: http: support CURLOPT_PROTOCOLS_STR http: prefer CURLOPT_SEEKFUNCTION to CURLOPT_IOCTLFUNCTION http-push: prefer CURLOPT_UPLOAD to CURLOPT_PUT
Diffstat (limited to 'http.h')
-rw-r--r--http.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/http.h b/http.h
index df1590e53a..77e0520582 100644
--- a/http.h
+++ b/http.h
@@ -40,7 +40,7 @@ struct buffer {
size_t fread_buffer(char *ptr, size_t eltsize, size_t nmemb, void *strbuf);
size_t fwrite_buffer(char *ptr, size_t eltsize, size_t nmemb, void *strbuf);
size_t fwrite_null(char *ptr, size_t eltsize, size_t nmemb, void *strbuf);
-curlioerr ioctl_buffer(CURL *handle, int cmd, void *clientp);
+int seek_buffer(void *clientp, curl_off_t offset, int origin);
/* Slot lifecycle functions */
struct active_request_slot *get_active_slot(void);