diff options
author | Patrick Monnerat <patrick@monnerat.net> | 2017-10-03 11:03:46 +0100 |
---|---|---|
committer | Patrick Monnerat <patrick@monnerat.net> | 2017-10-03 11:03:46 +0100 |
commit | ff6774ea6a03ae193f92e7175e9b96aaffb3f44c (patch) | |
tree | 991a80fa6c2dd598ee5405bc3a6a8babc9895f6e /docs/libcurl | |
parent | c3e58d93de9449bc9e85d89d75c0a75a9e3d5fec (diff) |
libcurl-tutorial: add casts in example to avoid compilation warnings.
Diffstat (limited to 'docs/libcurl')
-rw-r--r-- | docs/libcurl/libcurl-tutorial.3 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/libcurl/libcurl-tutorial.3 b/docs/libcurl/libcurl-tutorial.3 index e93972424..187d5ca0f 100644 --- a/docs/libcurl/libcurl-tutorial.3 +++ b/docs/libcurl/libcurl-tutorial.3 @@ -523,7 +523,8 @@ multiple files posting is deprecated by RFC 7578, chapter 4.3. To set the data source from an already opened FILE pointer, use: .nf - curl_mime_data_cb(part, filesize, fread, fseek, NULL, filepointer); + curl_mime_data_cb(part, filesize, (curl_read_callback) fread, + (curl_seek_callback) fseek, NULL, filepointer); .fi A deprecated \fIcurl_formadd(3)\fP function is still supported in libcurl. |