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_wrt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tool_cb_wrt.c') diff --git a/src/tool_cb_wrt.c b/src/tool_cb_wrt.c index 041345762..5c28a2cf8 100644 --- a/src/tool_cb_wrt.c +++ b/src/tool_cb_wrt.c @@ -72,7 +72,7 @@ bool tool_create_output_file(struct OutStruct *outs) ** callback for CURLOPT_WRITEFUNCTION */ -size_t tool_write_cb(void *buffer, size_t sz, size_t nmemb, void *userdata) +size_t tool_write_cb(char *buffer, size_t sz, size_t nmemb, void *userdata) { size_t rc; struct OutStruct *outs = userdata; -- cgit v1.2.1