diff options
author | Daniel Stenberg <daniel@haxx.se> | 2000-02-01 23:52:11 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2000-02-01 23:52:11 +0000 |
commit | 15755b3fd8744e1ff7d2cda5f2db9477a84e5c88 (patch) | |
tree | 10e12f5c8ab0262dcb1e32a94d533c96888e77c6 /lib/ftp.c | |
parent | d2af77e60c321431e6673bc1cad2f71e7d5feb64 (diff) |
Adjusted to use the new Transfer() instead of the old Download()
Diffstat (limited to 'lib/ftp.c')
-rw-r--r-- | lib/ftp.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -754,7 +754,8 @@ UrgError _ftp(struct UrlData *data, size prior to the actual upload. */ ProgressInit(data, data->infilesize); - result = Upload(data, data->secondarysocket, bytecountp); + result = Transfer(data, -1, -1, FALSE, NULL, /* no download */ + data->secondarysocket, bytecountp); if(result) return result; @@ -977,8 +978,9 @@ UrgError _ftp(struct UrlData *data, infof(data, "Getting file with size: %d\n", size); /* FTP download: */ - result=Download(data, data->secondarysocket, size, FALSE, - bytecountp); + result=Transfer(data, data->secondarysocket, size, FALSE, + bytecountp, + -1, NULL); /* no upload here */ if(result) return result; |