mirror of
https://github.com/curl/curl.git
synced 2025-09-18 10:02:45 +03:00
modified to use the current error code name, not the obsolete one
This commit is contained in:
parent
976285ccbc
commit
fec571f5b0
|
@ -1966,7 +1966,7 @@ CURLcode Curl_ftp_nextconnect(struct connectdata *conn)
|
||||||
failf(data, "Offset (%" FORMAT_OFF_T
|
failf(data, "Offset (%" FORMAT_OFF_T
|
||||||
") was beyond file size (%" FORMAT_OFF_T ")",
|
") was beyond file size (%" FORMAT_OFF_T ")",
|
||||||
conn->resume_from, foundsize);
|
conn->resume_from, foundsize);
|
||||||
return CURLE_FTP_BAD_DOWNLOAD_RESUME;
|
return CURLE_BAD_DOWNLOAD_RESUME;
|
||||||
}
|
}
|
||||||
/* convert to size to download */
|
/* convert to size to download */
|
||||||
downloadsize = -conn->resume_from;
|
downloadsize = -conn->resume_from;
|
||||||
|
@ -1978,7 +1978,7 @@ CURLcode Curl_ftp_nextconnect(struct connectdata *conn)
|
||||||
failf(data, "Offset (%" FORMAT_OFF_T
|
failf(data, "Offset (%" FORMAT_OFF_T
|
||||||
") was beyond file size (%" FORMAT_OFF_T ")",
|
") was beyond file size (%" FORMAT_OFF_T ")",
|
||||||
conn->resume_from, foundsize);
|
conn->resume_from, foundsize);
|
||||||
return CURLE_FTP_BAD_DOWNLOAD_RESUME;
|
return CURLE_BAD_DOWNLOAD_RESUME;
|
||||||
}
|
}
|
||||||
/* Now store the number of bytes we are expected to download */
|
/* Now store the number of bytes we are expected to download */
|
||||||
downloadsize = foundsize-conn->resume_from;
|
downloadsize = foundsize-conn->resume_from;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user