aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-10-18 20:28:53 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-10-18 20:28:53 +0000
commit80a06403e403be7b1ba80161fc3b65ab0c70d013 (patch)
tree858ed345d68c90456d99d4f971d89919c9504ff9
parent7ad69f59c74dfe9aac6e6114df6bbce48625317f (diff)
fixed gcc -Wshadow warnings
-rw-r--r--lib/transfer.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index 1938a8a2c..99beee2b4 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -1846,13 +1846,13 @@ CURLcode Curl_perform(struct SessionHandle *data)
to the new URL */
urlchanged = data->change.url_changed;
if ((CURLE_OK == res) && urlchanged) {
- char *newurl;
+ char *gotourl;
res = Curl_done(conn);
if(CURLE_OK == res) {
newurl = strdup(data->change.url);
- res = Curl_follow(data, newurl);
+ res = Curl_follow(data, gotourl);
if(res)
- free(newurl);
+ free(gotourl);
}
}
} while (urlchanged && res == CURLE_OK) ;
@@ -1861,8 +1861,6 @@ CURLcode Curl_perform(struct SessionHandle *data)
res = Curl_do(&conn);
if(res == CURLE_OK) {
- CURLcode res2; /* just a local extra result container */
-
if(conn->protocol&PROT_FTPS)
/* FTPS, disable ssl while transfering data */
conn->ssl.use = FALSE;