mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Changing NuttX fixed size type names to C99 standard names -- things will be broken for awhile
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2346 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
#include <nuttx/config.h>
|
||||
#if defined(CONFIG_NET) && CONFIG_NSOCKET_DESCRIPTORS > 0
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
@@ -50,7 +50,7 @@
|
||||
#include "net_internal.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Definitions
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
@@ -73,9 +73,9 @@
|
||||
* Function: netdev_maskcmp
|
||||
****************************************************************************/
|
||||
|
||||
static inline boolean netdev_maskcmp(const uip_ipaddr_t *ipaddr,
|
||||
const uip_ipaddr_t *raddr,
|
||||
const uip_ipaddr_t *netmask)
|
||||
static inline bool netdev_maskcmp(const uip_ipaddr_t *ipaddr,
|
||||
const uip_ipaddr_t *raddr,
|
||||
const uip_ipaddr_t *netmask)
|
||||
{
|
||||
#ifndef CONFIG_NET_IPv6
|
||||
return (*ipaddr & *netmask) == (*raddr & *netmask);
|
||||
|
||||
Reference in New Issue
Block a user