diff options
author | Yang Tse <yangsita@gmail.com> | 2008-10-17 12:53:53 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-10-17 12:53:53 +0000 |
commit | 4acbe8f20c45ed43768ff4d25ec6718c2f1dd6dd (patch) | |
tree | 655e4757c39d4e34901d3b918c2e21f71449a1bc /lib/url.c | |
parent | 2ea70a5c73561b4b0ecf033edb17d4db8317407e (diff) |
fix compiler warning
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -231,8 +231,10 @@ void Curl_safefree(void *ptr) static void close_connections(struct SessionHandle *data) { /* Loop through all open connections and kill them one by one */ - while(-1 != ConnectionKillOne(data)) - ; /* empty loop */ + long i; + do { + i = ConnectionKillOne(data); + while(i != -1L); } void Curl_freeset(struct SessionHandle * data) |