diff options
author | Yang Tse <yangsita@gmail.com> | 2007-03-25 02:30:58 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-03-25 02:30:58 +0000 |
commit | f08ac8683418e2d241f12661521f003eef902720 (patch) | |
tree | 048a098cde3ce79ad7322d219a3b98050073dc36 /lib/ftp.c | |
parent | d6eca8922960f2e3bf2cd07eef3eebbdb7ee265a (diff) |
fix compiler warning
Diffstat (limited to 'lib/ftp.c')
-rw-r--r-- | lib/ftp.c | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -109,16 +109,22 @@ #define NIFLAGS NI_NUMERICHOST | NI_NUMERICSERV #endif +#ifdef CURL_DISABLE_VERBOSE_STRINGS +#define ftp_pasv_verbose(a,b,c,d) do { } while (0) +#endif + /* Local API functions */ static CURLcode ftp_sendquote(struct connectdata *conn, struct curl_slist *quote); static CURLcode ftp_quit(struct connectdata *conn); static CURLcode ftp_parse_url_path(struct connectdata *conn); static CURLcode ftp_regular_transfer(struct connectdata *conn, bool *done); +#ifndef CURL_DISABLE_VERBOSE_STRINGS static void ftp_pasv_verbose(struct connectdata *conn, Curl_addrinfo *ai, char *newhost, /* ascii version */ int port); +#endif static CURLcode ftp_state_post_rest(struct connectdata *conn); static CURLcode ftp_state_post_cwd(struct connectdata *conn); static CURLcode ftp_state_quote(struct connectdata *conn, @@ -3238,23 +3244,18 @@ static CURLcode ftp_nb_type(struct connectdata *conn, * possibly new IP address. * */ +#ifndef CURL_DISABLE_VERBOSE_STRINGS static void ftp_pasv_verbose(struct connectdata *conn, Curl_addrinfo *ai, char *newhost, /* ascii version */ int port) { -#ifdef CURL_DISABLE_VERBOSE_STRINGS - (void)conn; - (void)ai; - (void)newhost; - (void)port; -#else char buf[256]; Curl_printable_address(ai, buf, sizeof(buf)); infof(conn->data, "Connecting to %s (%s) port %d\n", newhost, buf, port); -#endif } +#endif /* Check if this is a range download, and if so, set the internal variables |