aboutsummaryrefslogtreecommitdiff
path: root/lib/socks.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-02-02 16:25:07 +0000
committerYang Tse <yangsita@gmail.com>2010-02-02 16:25:07 +0000
commitd1717e7c9079a5f2b6291fa1fefe95d1348f8cc5 (patch)
tree708af8d09980a0bb3bd6d00a7a6406232dcf1607 /lib/socks.c
parente569ff959fb5be62e47eec38fec7d97014bf785f (diff)
Fix compiler warning: conditional expression is constant
Diffstat (limited to 'lib/socks.c')
-rw-r--r--lib/socks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/socks.c b/lib/socks.c
index 55f3e67b2..a1ead128f 100644
--- a/lib/socks.c
+++ b/lib/socks.c
@@ -72,7 +72,7 @@ int Curl_blockread_all(struct connectdata *conn, /* connection data */
struct timeval tvnow;
long conntime;
*n = 0;
- do {
+ for(;;) {
tvnow = Curl_tvnow();
/* calculating how long connection is establishing */
conntime = Curl_tvdiff(tvnow, conn->created);
@@ -104,7 +104,7 @@ int Curl_blockread_all(struct connectdata *conn, /* connection data */
buffersize -= nread;
buf += nread;
allread += nread;
- } while(1);
+ }
return result;
}