summaryrefslogtreecommitdiff
path: root/http.h
diff options
context:
space:
mode:
authorDan McGee <dpmcgee@gmail.com>2011-05-03 23:47:27 +0800
committerJunio C Hamano <gitster@pobox.com>2011-05-04 13:30:28 -0700
commita04ff3ec32b8a998a18f8b515ae4c48c1846b327 (patch)
tree0092c5d022ca90da22cf516d589cb8ce4b0f1f5b /http.h
parent11c3e2b7bd617334e7730950166188e94e003f2b (diff)
downloadgit-a04ff3ec32b8a998a18f8b515ae4c48c1846b327.tar.gz
http: make curl callbacks match contracts from curl header
Yes, these don't match perfectly with the void* first parameter of the fread/fwrite in the standard library, but they do match the curl expected method signature. This is needed when a refactor passes a curl_write_callback around, which would otherwise give incorrect parameter warnings. Signed-off-by: Dan McGee <dpmcgee@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http.h')
-rw-r--r--http.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/http.h b/http.h
index e9ed3c2e82..19b7134fa5 100644
--- a/http.h
+++ b/http.h
@@ -66,9 +66,9 @@ struct buffer {
};
/* Curl request read/write callbacks */
-extern size_t fread_buffer(void *ptr, size_t eltsize, size_t nmemb, void *strbuf);
-extern size_t fwrite_buffer(const void *ptr, size_t eltsize, size_t nmemb, void *strbuf);
-extern size_t fwrite_null(const void *ptr, size_t eltsize, size_t nmemb, void *strbuf);
+extern size_t fread_buffer(char *ptr, size_t eltsize, size_t nmemb, void *strbuf);
+extern size_t fwrite_buffer(char *ptr, size_t eltsize, size_t nmemb, void *strbuf);
+extern size_t fwrite_null(char *ptr, size_t eltsize, size_t nmemb, void *strbuf);
#ifndef NO_CURL_IOCTL
extern curlioerr ioctl_buffer(CURL *handle, int cmd, void *clientp);
#endif