aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-10-17 12:53:53 +0000
committerYang Tse <yangsita@gmail.com>2008-10-17 12:53:53 +0000
commit4acbe8f20c45ed43768ff4d25ec6718c2f1dd6dd (patch)
tree655e4757c39d4e34901d3b918c2e21f71449a1bc /lib/url.c
parent2ea70a5c73561b4b0ecf033edb17d4db8317407e (diff)
fix compiler warning
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/url.c b/lib/url.c
index 73b396863..bf2327589 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -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)