Fix some warnings

This commit is contained in:
Gregory Nutt 2016-06-13 12:06:44 -06:00
parent 4a0db11565
commit a7b1aae68c
2 changed files with 5 additions and 25 deletions

View File

@ -51,26 +51,6 @@
#include "ftpc_internal.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/****************************************************************************
* Private Types
****************************************************************************/
/****************************************************************************
* Private Data
****************************************************************************/
/****************************************************************************
* Public Data
****************************************************************************/
/****************************************************************************
* Private Functions
****************************************************************************/
/****************************************************************************
* Public Functions
****************************************************************************/
@ -159,7 +139,7 @@ errout:
int ftpc_reconnect(FAR struct ftpc_session_s *session)
{
struct sockaddr_in addr;
#ifdef CONFIG_DEBUG_FEATURES
#ifdef CONFIG_DEBUG_NET_ERROR
char *tmp;
#endif
int ret;
@ -190,7 +170,7 @@ int ftpc_reconnect(FAR struct ftpc_session_s *session)
/* Connect the socket to the server */
#ifdef CONFIG_DEBUG_FEATURES
#ifdef CONFIG_DEBUG_NET_ERROR
tmp = inet_ntoa(session->addr);
nerr("Connecting to server address %s:%d\n", tmp, ntohs(session->port));
#endif
@ -236,7 +216,7 @@ int ftpc_reconnect(FAR struct ftpc_session_s *session)
goto errout_with_socket;
}
#ifdef CONFIG_DEBUG_FEATURES
#ifdef CONFIG_DEBUG_NET_ERROR
nerr("Connected\n");
tmp = inet_ntoa(addr.sin_addr);
nerr(" Remote address: %s:%d\n", tmp, ntohs(addr.sin_port));

View File

@ -515,7 +515,7 @@ static int nxplayer_readbuffer(FAR struct nxplayer_s *pPlayer,
if (apb->nbytes < apb->nmaxbytes)
{
#ifdef CONFIG_DEBUG_FEATURES
#ifdef CONFIG_DEBUG_AUDIO_INFO
int errcode = errno;
int readerror = ferror(pPlayer->fileFd);
@ -534,7 +534,7 @@ static int nxplayer_readbuffer(FAR struct nxplayer_s *pPlayer,
apb->flags |= AUDIO_APB_FINAL;
#ifdef CONFIG_DEBUG_FEATURES
#ifdef CONFIG_DEBUG_AUDIO_ERROR
/* Was this a file read error */
if (apb->nbytes == 0 && readerror)