aboutsummaryrefslogtreecommitdiff
path: root/src/tool_cb_wrt.h
diff options
context:
space:
mode:
authorHanno Böck <hanno@hboeck.de>2017-03-29 10:02:34 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-03-29 10:05:12 +0200
commitaced311d189a70c7d9b2d958739bcfc1231b3698 (patch)
tree0748b6dd8abf037fa99f4a8ad1c0d214b0bc396f /src/tool_cb_wrt.h
parent396f34250deeca97be9d065750a5b4c70b4abd2c (diff)
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
Diffstat (limited to 'src/tool_cb_wrt.h')
-rw-r--r--src/tool_cb_wrt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_cb_wrt.h b/src/tool_cb_wrt.h
index fc60be0fc..4ccbf3a5f 100644
--- a/src/tool_cb_wrt.h
+++ b/src/tool_cb_wrt.h
@@ -27,7 +27,7 @@
** 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);
/* create a local file for writing, return TRUE on success */
bool tool_create_output_file(struct OutStruct *outs);