aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2009-05-11 12:13:41 +0000
committerDaniel Stenberg <daniel@haxx.se>2009-05-11 12:13:41 +0000
commitbcdbba05d39262cfd0fa5c9d3081bb595457edb9 (patch)
tree91f74485c5655d86c5639ec656da5b2b05ef12f6 /lib
parent51d1f309cdcbb444db28d01c0202843e1ce38c56 (diff)
moved variables more locally to get rid of one set of #ifdefs
Diffstat (limited to 'lib')
-rw-r--r--lib/ftp.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index bacd94f8b..c801a8fc0 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -3040,11 +3040,6 @@ static CURLcode ftp_connect(struct connectdata *conn,
bool *done) /* see description above */
{
CURLcode result;
-#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_PROXY)
- /* for FTP over HTTP proxy */
- struct HTTP http_proxy;
- struct FTP *ftp_save;
-#endif /* CURL_DISABLE_HTTP */
struct ftp_conn *ftpc = &conn->proto.ftpc;
struct SessionHandle *data=conn->data;
@@ -3065,6 +3060,10 @@ static CURLcode ftp_connect(struct connectdata *conn,
#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_PROXY)
if(conn->bits.tunnel_proxy && conn->bits.httpproxy) {
+ /* for FTP over HTTP proxy */
+ struct HTTP http_proxy;
+ struct FTP *ftp_save;
+
/* BLOCKING */
/* We want "seamless" FTP operations through HTTP proxy tunnel */