mirror of
https://github.com/curl/curl.git
synced 2026-08-25 20:13:35 +03:00
Fixed some compile warnings and errors and improved portability in the
examples. Removed ftp3rdparty.c since libcurl doesn't support 3rd party FTP transfers any longer.
This commit is contained in:
parent
4a728747e6
commit
49ce3e5160
24 changed files with 78 additions and 169 deletions
|
|
@ -22,7 +22,7 @@
|
|||
*/
|
||||
|
||||
struct FtpFile {
|
||||
char *filename;
|
||||
const char *filename;
|
||||
FILE *stream;
|
||||
};
|
||||
|
||||
|
|
@ -65,7 +65,7 @@ int main(void)
|
|||
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &ftpfile);
|
||||
|
||||
/* Switch on full protocol/debug output */
|
||||
curl_easy_setopt(curl, CURLOPT_VERBOSE, TRUE);
|
||||
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
|
||||
|
||||
res = curl_easy_perform(curl);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue