mirror of
https://github.com/curl/curl.git
synced 2026-07-08 23:17:16 +03:00
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:
parent
0a5b8af777
commit
f2ed79d8ee
36 changed files with 39 additions and 39 deletions
|
|
@ -41,7 +41,7 @@ struct WriteThis {
|
|||
size_t sizeleft;
|
||||
};
|
||||
|
||||
static size_t read_callback(void *dest, size_t size, size_t nmemb, void *userp)
|
||||
static size_t read_callback(char *dest, size_t size, size_t nmemb, void *userp)
|
||||
{
|
||||
struct WriteThis *wt = (struct WriteThis *)userp;
|
||||
size_t buffer_size = size*nmemb;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue