diff options
author | Olaf Hering <olaf@aepfle.de> | 2020-12-30 17:01:47 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-12-30 22:20:24 +0100 |
commit | f2ed79d8eec468612a29bee4f7ef286ccf255c96 (patch) | |
tree | 9f203c63add78f6a5680937f35c0369564563e0b /docs/examples/ftpuploadresume.c | |
parent | 0a5b8af777efbcbc7d2bb0aeb7ae8f34d88270d0 (diff) | |
download | curl-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 'docs/examples/ftpuploadresume.c')
-rw-r--r-- | docs/examples/ftpuploadresume.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/ftpuploadresume.c b/docs/examples/ftpuploadresume.c index ac7eb71af..50166bfef 100644 --- a/docs/examples/ftpuploadresume.c +++ b/docs/examples/ftpuploadresume.c @@ -51,7 +51,7 @@ static size_t discardfunc(void *ptr, size_t size, size_t nmemb, void *stream) } /* read data to upload */ -static size_t readfunc(void *ptr, size_t size, size_t nmemb, void *stream) +static size_t readfunc(char *ptr, size_t size, size_t nmemb, void *stream) { FILE *f = stream; size_t n; |