1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

libcurl-tutorial: add casts in example to avoid compilation warnings.

This commit is contained in:
Patrick Monnerat 2017-10-03 11:03:46 +01:00
parent c3e58d93de
commit ff6774ea6a

View File

@ -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: To set the data source from an already opened FILE pointer, use:
.nf .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 .fi
A deprecated \fIcurl_formadd(3)\fP function is still supported in libcurl. A deprecated \fIcurl_formadd(3)\fP function is still supported in libcurl.