diff options
Diffstat (limited to 'docs/examples')
-rw-r--r-- | docs/examples/anyauthput.c | 2 | ||||
-rw-r--r-- | docs/examples/curlgtk.c | 2 | ||||
-rw-r--r-- | docs/examples/ftpupload.c | 2 | ||||
-rw-r--r-- | docs/examples/ftpuploadfrommem.c | 2 | ||||
-rw-r--r-- | docs/examples/ftpuploadresume.c | 2 | ||||
-rw-r--r-- | docs/examples/http2-upload.c | 2 | ||||
-rw-r--r-- | docs/examples/httpput.c | 2 | ||||
-rw-r--r-- | docs/examples/imap-append.c | 2 | ||||
-rw-r--r-- | docs/examples/post-callback.c | 2 | ||||
-rw-r--r-- | docs/examples/sftpuploadresume.c | 2 | ||||
-rw-r--r-- | docs/examples/smtp-authzid.c | 2 | ||||
-rw-r--r-- | docs/examples/smtp-mail.c | 2 | ||||
-rw-r--r-- | docs/examples/smtp-multi.c | 2 | ||||
-rw-r--r-- | docs/examples/smtp-ssl.c | 2 | ||||
-rw-r--r-- | docs/examples/smtp-tls.c | 2 |
15 files changed, 15 insertions, 15 deletions
diff --git a/docs/examples/anyauthput.c b/docs/examples/anyauthput.c index e56d1d970..47b713a6c 100644 --- a/docs/examples/anyauthput.c +++ b/docs/examples/anyauthput.c @@ -78,7 +78,7 @@ static curlioerr my_ioctl(CURL *handle, curliocmd cmd, void *userp) } /* read callback function, fread() look alike */ -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) { ssize_t retcode; curl_off_t nread; diff --git a/docs/examples/curlgtk.c b/docs/examples/curlgtk.c index 5990799eb..02b600d9c 100644 --- a/docs/examples/curlgtk.c +++ b/docs/examples/curlgtk.c @@ -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); } diff --git a/docs/examples/ftpupload.c b/docs/examples/ftpupload.c index 15dfec7bd..7ed7634ae 100644 --- a/docs/examples/ftpupload.c +++ b/docs/examples/ftpupload.c @@ -48,7 +48,7 @@ DLL, you MUST also provide a read callback with CURLOPT_READFUNCTION. Failing to do so will give you a crash since a DLL may not use the variable's memory when passed in to it from an app like this. */ -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) { curl_off_t nread; /* in real-world cases, this would probably get this data differently diff --git a/docs/examples/ftpuploadfrommem.c b/docs/examples/ftpuploadfrommem.c index 5ae1030dc..fbbc01b12 100644 --- a/docs/examples/ftpuploadfrommem.c +++ b/docs/examples/ftpuploadfrommem.c @@ -43,7 +43,7 @@ struct WriteThis { size_t sizeleft; }; -static size_t read_callback(void *ptr, size_t size, size_t nmemb, void *userp) +static size_t read_callback(char *ptr, size_t size, size_t nmemb, void *userp) { struct WriteThis *upload = (struct WriteThis *)userp; size_t max = size*nmemb; 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; diff --git a/docs/examples/http2-upload.c b/docs/examples/http2-upload.c index 09da1d8e7..8545d5aeb 100644 --- a/docs/examples/http2-upload.c +++ b/docs/examples/http2-upload.c @@ -159,7 +159,7 @@ int my_trace(CURL *handle, curl_infotype type, return 0; } -static size_t read_callback(void *ptr, size_t size, size_t nmemb, void *userp) +static size_t read_callback(char *ptr, size_t size, size_t nmemb, void *userp) { struct input *i = userp; size_t retcode = fread(ptr, size, nmemb, i->in); diff --git a/docs/examples/httpput.c b/docs/examples/httpput.c index 163600a5b..8365ab208 100644 --- a/docs/examples/httpput.c +++ b/docs/examples/httpput.c @@ -38,7 +38,7 @@ * http://www.apacheweek.com/features/put */ -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 retcode; curl_off_t nread; diff --git a/docs/examples/imap-append.c b/docs/examples/imap-append.c index 09287a441..9c045710a 100644 --- a/docs/examples/imap-append.c +++ b/docs/examples/imap-append.c @@ -59,7 +59,7 @@ struct upload_status { int lines_read; }; -static size_t payload_source(void *ptr, size_t size, size_t nmemb, void *userp) +static size_t payload_source(char *ptr, size_t size, size_t nmemb, void *userp) { struct upload_status *upload_ctx = (struct upload_status *)userp; const char *data; diff --git a/docs/examples/post-callback.c b/docs/examples/post-callback.c index 9ee3f9a23..f9c816036 100644 --- a/docs/examples/post-callback.c +++ b/docs/examples/post-callback.c @@ -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; diff --git a/docs/examples/sftpuploadresume.c b/docs/examples/sftpuploadresume.c index a58bed22a..e2aa37392 100644 --- a/docs/examples/sftpuploadresume.c +++ b/docs/examples/sftpuploadresume.c @@ -29,7 +29,7 @@ #include <curl/curl.h> /* 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 = (FILE *)stream; size_t n; diff --git a/docs/examples/smtp-authzid.c b/docs/examples/smtp-authzid.c index 3f520c0a5..e5bb4932c 100644 --- a/docs/examples/smtp-authzid.c +++ b/docs/examples/smtp-authzid.c @@ -67,7 +67,7 @@ struct upload_status { int lines_read; }; -static size_t payload_source(void *ptr, size_t size, size_t nmemb, void *userp) +static size_t payload_source(char *ptr, size_t size, size_t nmemb, void *userp) { struct upload_status *upload_ctx = (struct upload_status *)userp; const char *data; diff --git a/docs/examples/smtp-mail.c b/docs/examples/smtp-mail.c index 3e071c5f9..6ed7869dd 100644 --- a/docs/examples/smtp-mail.c +++ b/docs/examples/smtp-mail.c @@ -64,7 +64,7 @@ struct upload_status { int lines_read; }; -static size_t payload_source(void *ptr, size_t size, size_t nmemb, void *userp) +static size_t payload_source(char *ptr, size_t size, size_t nmemb, void *userp) { struct upload_status *upload_ctx = (struct upload_status *)userp; const char *data; diff --git a/docs/examples/smtp-multi.c b/docs/examples/smtp-multi.c index 07e1bd882..4d9eebb61 100644 --- a/docs/examples/smtp-multi.c +++ b/docs/examples/smtp-multi.c @@ -61,7 +61,7 @@ struct upload_status { int lines_read; }; -static size_t payload_source(void *ptr, size_t size, size_t nmemb, void *userp) +static size_t payload_source(char *ptr, size_t size, size_t nmemb, void *userp) { struct upload_status *upload_ctx = (struct upload_status *)userp; const char *data; diff --git a/docs/examples/smtp-ssl.c b/docs/examples/smtp-ssl.c index d017b6b63..a3cd8bb5d 100644 --- a/docs/examples/smtp-ssl.c +++ b/docs/examples/smtp-ssl.c @@ -61,7 +61,7 @@ struct upload_status { int lines_read; }; -static size_t payload_source(void *ptr, size_t size, size_t nmemb, void *userp) +static size_t payload_source(char *ptr, size_t size, size_t nmemb, void *userp) { struct upload_status *upload_ctx = (struct upload_status *)userp; const char *data; diff --git a/docs/examples/smtp-tls.c b/docs/examples/smtp-tls.c index a328f631e..d8f256186 100644 --- a/docs/examples/smtp-tls.c +++ b/docs/examples/smtp-tls.c @@ -61,7 +61,7 @@ struct upload_status { int lines_read; }; -static size_t payload_source(void *ptr, size_t size, size_t nmemb, void *userp) +static size_t payload_source(char *ptr, size_t size, size_t nmemb, void *userp) { struct upload_status *upload_ctx = (struct upload_status *)userp; const char *data; |