diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-10-18 20:35:03 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-10-18 20:35:03 +0000 |
commit | 9df8f9a63dc08b12475f1c56f1beddf8ce8649f0 (patch) | |
tree | 5a311adffb6b04918202801a82018a63d984ea61 /lib/http.c | |
parent | 5eee801d06b0447c156a935df2d71bf05f20ce7f (diff) |
builds warning-free with -Wshadow now
Diffstat (limited to 'lib/http.c')
-rw-r--r-- | lib/http.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/http.c b/lib/http.c index 61b9f4893..9e2196ab2 100644 --- a/lib/http.c +++ b/lib/http.c @@ -1079,7 +1079,7 @@ CURLcode Curl_http(struct connectdata *conn) if(!conn->bits.upload_chunky && (data->set.httpreq != HTTPREQ_GET)) { /* not a chunky transfer but data is to be sent */ - char *ptr = checkheaders(data, "Transfer-Encoding:"); + ptr = checkheaders(data, "Transfer-Encoding:"); if(ptr) { /* Some kind of TE is requested, check if 'chunked' is chosen */ if(Curl_compareheader(ptr, "Transfer-Encoding:", "chunked")) @@ -1108,7 +1108,6 @@ CURLcode Curl_http(struct connectdata *conn) /* If we have a given custom Host: header, we extract the host name in order to possibly use it for cookie reasons later on. */ char *start = ptr+strlen("Host:"); - char *ptr; while(*start && isspace((int)*start )) start++; ptr = start; /* start host-scanning here */ @@ -1395,7 +1394,7 @@ CURLcode Curl_http(struct connectdata *conn) } while(headers) { - char *ptr = strchr(headers->data, ':'); + ptr = strchr(headers->data, ':'); if(ptr) { /* we require a colon for this to be a true header */ |