mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 14:27:37 +08:00
Eliminate warnings in ARM build
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@883 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -73,8 +73,9 @@
|
|||||||
* Function: netdev_maskcmp
|
* Function: netdev_maskcmp
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
static inline boolean netdev_maskcmp(uip_ipaddr_t *ipaddr, uip_ipaddr_t *raddr,
|
static inline boolean netdev_maskcmp(const uip_ipaddr_t *ipaddr,
|
||||||
uip_ipaddr_t *netmask)
|
const uip_ipaddr_t *raddr,
|
||||||
|
const uip_ipaddr_t *netmask)
|
||||||
{
|
{
|
||||||
#ifndef CONFIG_NET_IPv6
|
#ifndef CONFIG_NET_IPv6
|
||||||
return (*ipaddr & *netmask) == (*raddr & *netmask);
|
return (*ipaddr & *netmask) == (*raddr & *netmask);
|
||||||
|
|||||||
@@ -52,6 +52,7 @@
|
|||||||
#include <net/uip/uip-arch.h>
|
#include <net/uip/uip-arch.h>
|
||||||
|
|
||||||
#include "uip-internal.h"
|
#include "uip-internal.h"
|
||||||
|
#include "../net-internal.h" /* Should not include this! */
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Definitions
|
* Definitions
|
||||||
|
|||||||
@@ -262,7 +262,7 @@ int tftpget(const char *remote, const char *local, in_addr_t addr, boolean binar
|
|||||||
/* Parse the incoming DATA packet */
|
/* Parse the incoming DATA packet */
|
||||||
|
|
||||||
if (nbytesrecvd < TFTP_DATAHEADERSIZE ||
|
if (nbytesrecvd < TFTP_DATAHEADERSIZE ||
|
||||||
tftp_parsedatapacket(packet, &opcode, &blockno) != OK ||
|
tftp_parsedatapacket(packet, &opcode, &rblockno) != OK ||
|
||||||
blockno != rblockno)
|
blockno != rblockno)
|
||||||
{
|
{
|
||||||
nvdbg("Parse failure\n");
|
nvdbg("Parse failure\n");
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ static inline int tftp_incrndx(int ndx)
|
|||||||
static inline ssize_t tftp_read(int fd, ubyte *buf, size_t buflen)
|
static inline ssize_t tftp_read(int fd, ubyte *buf, size_t buflen)
|
||||||
{
|
{
|
||||||
ssize_t nbytesread;
|
ssize_t nbytesread;
|
||||||
ssize_t totalread;
|
ssize_t totalread = 0;
|
||||||
|
|
||||||
while (totalread < buflen)
|
while (totalread < buflen)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user