From: Daniel Stenberg Date: Thu, 12 Feb 2004 09:48:27 +0000 (+0000) Subject: No longer receive the return code in ConnectionKillOne() that wasn't dealt X-Git-Tag: curl-7_11_1~363 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d57eed6f22f7eb202a942895d968f4af87b7cae0;p=thirdparty%2Fcurl.git No longer receive the return code in ConnectionKillOne() that wasn't dealt with anyway and thus caused picky compiler to warn. --- diff --git a/lib/url.c b/lib/url.c index bea5a3e0c2..c5379c9852 100644 --- a/lib/url.c +++ b/lib/url.c @@ -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;