diff options
author | Yang Tse <yangsita@gmail.com> | 2007-03-25 01:59:52 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-03-25 01:59:52 +0000 |
commit | d6eca8922960f2e3bf2cd07eef3eebbdb7ee265a (patch) | |
tree | 35b8830ca0274fa10389eede6674f8881594965c /lib/ftp.c | |
parent | 2bd1d7e996e8c781f14af8d3e7d0ffbd4033d5f1 (diff) |
fix compiler warning
Diffstat (limited to 'lib/ftp.c')
-rw-r--r-- | lib/ftp.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -655,7 +655,7 @@ CURLcode Curl_GetFTPResponse(ssize_t *nreadp, /* return number of bytes read */ static void state(struct connectdata *conn, ftpstate state) { -#ifdef CURLDEBUG +#if defined(CURLDEBUG) && !defined(CURL_DISABLE_VERBOSE_STRINGS) /* for debug purposes */ const char *names[]={ "STOP", @@ -693,7 +693,7 @@ static void state(struct connectdata *conn, }; #endif struct ftp_conn *ftpc = &conn->proto.ftpc; -#ifdef CURLDEBUG +#if defined(CURLDEBUG) && !defined(CURL_DISABLE_VERBOSE_STRINGS) if(ftpc->state != state) infof(conn->data, "FTP %p state change from %s to %s\n", ftpc, names[ftpc->state], names[state]); @@ -3244,9 +3244,16 @@ ftp_pasv_verbose(struct connectdata *conn, 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 } /* |