mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-12 16:06:59 +00:00
netutils/ftpc: Eliminate warnings about types of inputs to netlib_ipv4adaptr() and about ftp_cmd_pasv() being defined but not used.
This commit is contained in:
parent
402306635a
commit
68affc6c08
1 changed files with 4 additions and 4 deletions
|
|
@ -165,7 +165,7 @@ static int ftp_cmd_epsv(FAR struct ftpc_session_s *session,
|
|||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: ftp_cmd pasv
|
||||
* Name: ftp_cmd_pasv
|
||||
*
|
||||
* Description:
|
||||
* Enter passive mode using PASV command.
|
||||
|
|
@ -188,7 +188,7 @@ static int ftp_cmd_epsv(FAR struct ftpc_session_s *session,
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_NET_IPv4
|
||||
#ifdef CONFIG_FTPC_DISABLE_EPSV
|
||||
static int ftp_cmd_pasv(FAR struct ftpc_session_s *session,
|
||||
FAR union ftpc_sockaddr_u *addr)
|
||||
{
|
||||
|
|
@ -430,8 +430,8 @@ int ftpc_xfrinit(FAR struct ftpc_session_s *session)
|
|||
#ifdef CONFIG_NET_IPv4
|
||||
if (session->server.sa.sa_family == AF_INET)
|
||||
{
|
||||
ret = netlib_ipv4adaptor(&session->server.in4.sin_addr,
|
||||
&session->dacceptor.laddr.in4.sin_addr);
|
||||
ret = netlib_ipv4adaptor(session->server.in4.sin_addr.s_addr,
|
||||
&session->dacceptor.laddr.in4.sin_addr.s_addr);
|
||||
if (ret < 0)
|
||||
{
|
||||
nerr("ERROR: netlib_ipv4adaptor() failed: %d\n", ret);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue