diff options
Diffstat (limited to 'nuttx/net/netdev-findbyaddr.c')
-rw-r--r-- | nuttx/net/netdev-findbyaddr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nuttx/net/netdev-findbyaddr.c b/nuttx/net/netdev-findbyaddr.c index 0167f6312..ff4cd7a6d 100644 --- a/nuttx/net/netdev-findbyaddr.c +++ b/nuttx/net/netdev-findbyaddr.c @@ -73,8 +73,9 @@ * Function: netdev_maskcmp ****************************************************************************/ -static inline boolean netdev_maskcmp(uip_ipaddr_t *ipaddr, uip_ipaddr_t *raddr, - uip_ipaddr_t *netmask) +static inline boolean 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); |