aboutsummaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-03-25 01:59:52 +0000
committerYang Tse <yangsita@gmail.com>2007-03-25 01:59:52 +0000
commitd6eca8922960f2e3bf2cd07eef3eebbdb7ee265a (patch)
tree35b8830ca0274fa10389eede6674f8881594965c /lib/ftp.c
parent2bd1d7e996e8c781f14af8d3e7d0ffbd4033d5f1 (diff)
fix compiler warning
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 8c54f7274..d0c69f243 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -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
}
/*