Fix compiler warning: conditional expression is constant

This commit is contained in:
Yang Tse
2010-02-02 16:25:07 +00:00
parent e569ff959f
commit d1717e7c90
6 changed files with 11 additions and 11 deletions

View File

@@ -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;
}