mirror of
https://github.com/curl/curl.git
synced 2026-08-26 11:53:49 +03:00
lib: refactor the type of funcs which have useless return and checks
Some internal functions always return CURLE_OK. - Curl_http_proxy_get_destination() does that frombb4032a, (2 years ago) And the original inline code does not need to check the status. - Curl_wildcard_init() does that frome60fe20. (8 years ago) - Curl_initinfo() does that from a very beginning. - Curl_pgrsSetDownloadCounter() did not have a return before914e49b,ad051e1recovered its content (2 years ago) but did not completely recovered the changes related to it. - auth_digest_get_qop_values() does that from676de7f. This directly changes their type to void and cleaned the remaining checks for their return value. Closes #19386
This commit is contained in:
parent
2684af257e
commit
608d96694b
13 changed files with 20 additions and 42 deletions
|
|
@ -48,9 +48,7 @@ void Curl_pgrsStartNow(struct Curl_easy *data);
|
|||
void Curl_pgrsSetDownloadSize(struct Curl_easy *data, curl_off_t size);
|
||||
void Curl_pgrsSetUploadSize(struct Curl_easy *data, curl_off_t size);
|
||||
|
||||
/* It is fine to not check the return code if 'size' is set to 0 */
|
||||
CURLcode Curl_pgrsSetDownloadCounter(struct Curl_easy *data, curl_off_t size);
|
||||
|
||||
void Curl_pgrsSetDownloadCounter(struct Curl_easy *data, curl_off_t size);
|
||||
void Curl_pgrsSetUploadCounter(struct Curl_easy *data, curl_off_t size);
|
||||
void Curl_ratelimit(struct Curl_easy *data, struct curltime now);
|
||||
int Curl_pgrsUpdate(struct Curl_easy *data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue