mirror of
https://github.com/curl/curl.git
synced 2026-06-21 15:55:40 +03:00
fix compiler warning
This commit is contained in:
parent
2bd1d7e996
commit
d6eca89229
3 changed files with 42 additions and 18 deletions
11
lib/ftp.c
11
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
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue