summaryrefslogtreecommitdiff
path: root/lib/http.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-06-21 16:28:15 +0200
committerYang Tse <yangsita@gmail.com>2011-06-21 16:28:15 +0200
commit57064e4a0d426eeb0f82e7831214caaf9300bc2a (patch)
treed9c549e94b38056864e8b034c66a936c837eb602 /lib/http.c
parentd9e71809cbc85ec591ba78013acf0b01628275f8 (diff)
downloadcurl-57064e4a0d426eeb0f82e7831214caaf9300bc2a.tar.gz
http: fix compiler warning
compiler warning: conditional expression is constant
Diffstat (limited to 'lib/http.c')
-rw-r--r--lib/http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/http.c b/lib/http.c
index 3d9f2f2eb..56d263b91 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -3158,7 +3158,7 @@ CURLcode Curl_http_readwrite_headers(struct SessionHandle *data,
/* Find the first non-space letter */
start = k->p + 18;
- do {
+ for(;;) {
/* skip whitespaces and commas */
while(*start && (ISSPACE(*start) || (*start == ',')))
start++;
@@ -3204,7 +3204,7 @@ CURLcode Curl_http_readwrite_headers(struct SessionHandle *data,
/* unknown! */
break;
- } while(1);
+ }
}
else if(checkprefix("Content-Encoding:", k->p) &&