From f2ed79d8eec468612a29bee4f7ef286ccf255c96 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Wed, 30 Dec 2020 17:01:47 +0100 Subject: 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 Closes #6392 --- tests/libtest/lib1591.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/libtest/lib1591.c') diff --git a/tests/libtest/lib1591.c b/tests/libtest/lib1591.c index 6dbafb25f..8349b1db5 100644 --- a/tests/libtest/lib1591.c +++ b/tests/libtest/lib1591.c @@ -32,7 +32,7 @@ static char data [] = "Hello Cloud!\r\n"; static size_t consumed = 0; -static size_t read_callback(void *ptr, size_t size, size_t nmemb, void *stream) +static size_t read_callback(char *ptr, size_t size, size_t nmemb, void *stream) { size_t amount = nmemb * size; /* Total bytes curl wants */ -- cgit v1.2.1