From aced311d189a70c7d9b2d958739bcfc1231b3698 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hanno=20B=C3=B6ck?= Date: Wed, 29 Mar 2017 10:02:34 +0200 Subject: curl: fix callback argument inconsistency As you can see the callback definition uses a char* for the first argument, while the function uses a void*. URL: https://curl.haxx.se/mail/lib-2017-03/0116.html --- src/tool_cb_hdr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tool_cb_hdr.h') diff --git a/src/tool_cb_hdr.h b/src/tool_cb_hdr.h index bb54bbb88..32032e980 100644 --- a/src/tool_cb_hdr.h +++ b/src/tool_cb_hdr.h @@ -48,7 +48,7 @@ struct HdrCbData { ** callback for CURLOPT_HEADERFUNCTION */ -size_t tool_header_cb(void *ptr, size_t size, size_t nmemb, void *userdata); +size_t tool_header_cb(char *ptr, size_t size, size_t nmemb, void *userdata); #endif /* HEADER_CURL_TOOL_CB_HDR_H */ -- cgit v1.2.3