aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-05-31 16:24:01 +0200
committerYang Tse <yangsita@gmail.com>2010-05-31 16:24:01 +0200
commit40f8aaedb731c9ee56275a75c097a084776eaa3b (patch)
tree9613c5811381188961e997f609daba58b45c3988
parent374f48675b193290757d48e7c5f6af8129bc8a1d (diff)
fix compiler warning: external declaration in primary source file
-rw-r--r--lib/ftp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 7e8f58574..1a595cea2 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -112,7 +112,6 @@
#define ftp_pasv_verbose(a,b,c,d) do { } while(0)
#endif
-void Curl_ftp_wc_data_dtor(void *ptr);
/* Local API functions */
static CURLcode ftp_sendquote(struct connectdata *conn,
struct curl_slist *quote);
@@ -150,6 +149,8 @@ static CURLcode ftp_setup_connection(struct connectdata * conn);
static CURLcode init_wc_data(struct connectdata *conn);
static CURLcode wc_statemach(struct connectdata *conn);
+static void wc_data_dtor(void *ptr);
+
static CURLcode ftp_state_post_retr_size(struct connectdata *conn,
curl_off_t filesize);
@@ -3469,7 +3470,7 @@ CURLcode ftp_perform(struct connectdata *conn,
return result;
}
-void Curl_ftp_wc_data_dtor(void *ptr)
+static void wc_data_dtor(void *ptr)
{
struct ftp_wc_tmpdata *tmp = ptr;
if(tmp)
@@ -3529,7 +3530,7 @@ static CURLcode init_wc_data(struct connectdata *conn)
return CURLE_OUT_OF_MEMORY;
wildcard->tmp = ftp_tmp; /* put it to the WildcardData tmp pointer */
- wildcard->tmp_dtor = Curl_ftp_wc_data_dtor;
+ wildcard->tmp_dtor = wc_data_dtor;
/* wildcard does not support NOCWD option (assert it?) */
if(conn->data->set.ftp_filemethod == FTPFILE_NOCWD)