mirror of
https://github.com/curl/curl.git
synced 2026-07-31 04:48:04 +03:00
Curl_pgrsDone: return int and acknowledge return code
Since Curl_pgrsDone() itself calls Curl_pgrsUpdate() which may return an abort instruction or similar we need to return that info back and subsequently properly handle return codes from Curl_pgrsDone() where used. (Spotted by a Coverity scan)
This commit is contained in:
parent
72c7c1d64e
commit
6cd084a3b5
5 changed files with 17 additions and 6 deletions
|
|
@ -39,7 +39,7 @@ typedef enum {
|
|||
TIMER_LAST /* must be last */
|
||||
} timerid;
|
||||
|
||||
void Curl_pgrsDone(struct connectdata *);
|
||||
int Curl_pgrsDone(struct connectdata *);
|
||||
void Curl_pgrsStartNow(struct SessionHandle *data);
|
||||
void Curl_pgrsSetDownloadSize(struct SessionHandle *data, curl_off_t size);
|
||||
void Curl_pgrsSetUploadSize(struct SessionHandle *data, curl_off_t size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue