From: Yang Tse Date: Tue, 21 Jun 2011 14:28:15 +0000 (+0200) Subject: http: fix compiler warning X-Git-Tag: curl-7_21_7~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=57064e4a0d426eeb0f82e7831214caaf9300bc2a;p=thirdparty%2Fcurl.git http: fix compiler warning compiler warning: conditional expression is constant --- diff --git a/lib/http.c b/lib/http.c index 3d9f2f2ebc..56d263b91f 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) &&