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
This commit is contained in:
Olaf Hering 2020-12-30 17:01:47 +01:00 committed by Daniel Stenberg
parent 0a5b8af777
commit f2ed79d8ee
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
36 changed files with 39 additions and 39 deletions

View file

@ -24,7 +24,7 @@ size_t my_write_func(void *ptr, size_t size, size_t nmemb, FILE *stream)
return fwrite(ptr, size, nmemb, stream);
}
size_t my_read_func(void *ptr, size_t size, size_t nmemb, FILE *stream)
size_t my_read_func(char *ptr, size_t size, size_t nmemb, FILE *stream)
{
return fread(ptr, size, nmemb, stream);
}