mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
No longer receive the return code in ConnectionKillOne() that wasn't dealt
with anyway and thus caused picky compiler to warn.
This commit is contained in:
parent
a3d39efa3b
commit
d57eed6f22
@ -1491,7 +1491,6 @@ ConnectionKillOne(struct SessionHandle *data)
|
||||
int highscore=-1;
|
||||
int connindex=-1;
|
||||
int score;
|
||||
CURLcode result;
|
||||
struct timeval now;
|
||||
|
||||
now = Curl_tvnow();
|
||||
@ -1531,7 +1530,7 @@ ConnectionKillOne(struct SessionHandle *data)
|
||||
if(connindex >= 0) {
|
||||
|
||||
/* the winner gets the honour of being disconnected */
|
||||
result = Curl_disconnect(data->state.connects[connindex]);
|
||||
(void) Curl_disconnect(data->state.connects[connindex]);
|
||||
|
||||
/* clean the array entry */
|
||||
data->state.connects[connindex] = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user