mirror of
https://github.com/curl/curl.git
synced 2025-09-17 09:32:48 +03:00
multi: (void)-prefix when ignoring return values
... and added braces to two function calls which fixes warnings if they are replace by empty macros at build-time.
This commit is contained in:
parent
b49652ac66
commit
982c09b95b
11
lib/multi.c
11
lib/multi.c
|
@ -1934,13 +1934,15 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
|
||||||
|
|
||||||
k = &data->req;
|
k = &data->req;
|
||||||
|
|
||||||
if(!(k->keepon & KEEP_RECV))
|
if(!(k->keepon & KEEP_RECV)) {
|
||||||
/* We're done receiving */
|
/* We're done receiving */
|
||||||
Curl_pipeline_leave_read(data->conn);
|
Curl_pipeline_leave_read(data->conn);
|
||||||
|
}
|
||||||
|
|
||||||
if(!(k->keepon & KEEP_SEND))
|
if(!(k->keepon & KEEP_SEND)) {
|
||||||
/* We're done sending */
|
/* We're done sending */
|
||||||
Curl_pipeline_leave_write(data->conn);
|
Curl_pipeline_leave_write(data->conn);
|
||||||
|
}
|
||||||
|
|
||||||
if(done || (result == CURLE_RECV_ERROR)) {
|
if(done || (result == CURLE_RECV_ERROR)) {
|
||||||
/* If CURLE_RECV_ERROR happens early enough, we assume it was a race
|
/* If CURLE_RECV_ERROR happens early enough, we assume it was a race
|
||||||
|
@ -2299,8 +2301,9 @@ CURLMcode curl_multi_cleanup(struct Curl_multi *multi)
|
||||||
Curl_psl_destroy(&multi->psl);
|
Curl_psl_destroy(&multi->psl);
|
||||||
|
|
||||||
/* Free the blacklists by setting them to NULL */
|
/* Free the blacklists by setting them to NULL */
|
||||||
Curl_pipeline_set_site_blacklist(NULL, &multi->pipelining_site_bl);
|
(void)Curl_pipeline_set_site_blacklist(NULL, &multi->pipelining_site_bl);
|
||||||
Curl_pipeline_set_server_blacklist(NULL, &multi->pipelining_server_bl);
|
(void)Curl_pipeline_set_server_blacklist(NULL,
|
||||||
|
&multi->pipelining_server_bl);
|
||||||
|
|
||||||
free(multi);
|
free(multi);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user