summaryrefslogtreecommitdiff
path: root/tests/libtest/lib555.c
diff options
context:
space:
mode:
authorOlaf Hering <olaf@aepfle.de>2020-12-30 17:01:47 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-12-30 22:20:24 +0100
commitf2ed79d8eec468612a29bee4f7ef286ccf255c96 (patch)
tree9f203c63add78f6a5680937f35c0369564563e0b /tests/libtest/lib555.c
parent0a5b8af777efbcbc7d2bb0aeb7ae8f34d88270d0 (diff)
downloadcurl-f2ed79d8eec468612a29bee4f7ef286ccf255c96.tar.gz
docs/examples: adjust prototypes for CURLOPT_READFUNCTION
The type of the buffer in curl_read_callback is 'char *', not 'void *'. Signed-off-by: Olaf Hering <olaf@aepfle.de> Closes #6392
Diffstat (limited to 'tests/libtest/lib555.c')
-rw-r--r--tests/libtest/lib555.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libtest/lib555.c b/tests/libtest/lib555.c
index 392ae7dcd..5b38530d1 100644
--- a/tests/libtest/lib555.c
+++ b/tests/libtest/lib555.c
@@ -45,7 +45,7 @@ static const char uploadthis[] =
"this is the blurb we want to upload\n";
#endif
-static size_t readcallback(void *ptr,
+static size_t readcallback(char *ptr,
size_t size,
size_t nmemb,
void *clientp)