projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9e7180
)
http: fix compiler warning
author
Yang Tse
<yangsita@gmail.com>
Tue, 21 Jun 2011 14:28:15 +0000
(16:28 +0200)
committer
Yang Tse
<yangsita@gmail.com>
Tue, 21 Jun 2011 14:28:15 +0000
(16:28 +0200)
compiler warning: conditional expression is constant
lib/http.c
patch
|
blob
|
history
diff --git
a/lib/http.c
b/lib/http.c
index
3d9f2f2
..
56d263b
100644
(file)
--- 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) &&