From b4990b5bb43115e10eb30f16e3b0e09b952df63d Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Sun, 22 Feb 2015 22:50:06 +0100 Subject: [PATCH] Fixed warnings on whole project introduced by const pointers on ip_addr_t --- src/core/ipv6/ip6_frag.c | 2 +- src/core/snmp/mib2.c | 4 ++-- src/include/lwip/ip6_frag.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/ipv6/ip6_frag.c b/src/core/ipv6/ip6_frag.c index 36eb43dc..07fd3f2e 100644 --- a/src/core/ipv6/ip6_frag.c +++ b/src/core/ipv6/ip6_frag.c @@ -591,7 +591,7 @@ ip6_frag_free_pbuf_custom(struct pbuf *p) * @return ERR_OK if sent successfully, err_t otherwise */ err_t -ip6_frag(struct pbuf *p, struct netif *netif, ip6_addr_t *dest) +ip6_frag(struct pbuf *p, struct netif *netif, const ip6_addr_t *dest) { struct ip6_hdr *original_ip6hdr; struct ip6_hdr *ip6hdr; diff --git a/src/core/snmp/mib2.c b/src/core/snmp/mib2.c index 43cc631f..b6246f11 100644 --- a/src/core/snmp/mib2.c +++ b/src/core/snmp/mib2.c @@ -2704,7 +2704,7 @@ atentry_get_value(struct obj_def *od, u16_t len, void *value) #if LWIP_ARP u8_t id; struct eth_addr* ethaddr_ret; - ip_addr_t* ipaddr_ret; + const ip_addr_t* ipaddr_ret; #endif /* LWIP_ARP */ ip_addr_t ip; struct netif *netif; @@ -3410,7 +3410,7 @@ ip_ntomentry_get_value(struct obj_def *od, u16_t len, void *value) #if LWIP_ARP u8_t id; struct eth_addr* ethaddr_ret; - ip_addr_t* ipaddr_ret; + const ip_addr_t* ipaddr_ret; #endif /* LWIP_ARP */ ip_addr_t ip; struct netif *netif; diff --git a/src/include/lwip/ip6_frag.h b/src/include/lwip/ip6_frag.h index 9987914d..b593fb51 100644 --- a/src/include/lwip/ip6_frag.h +++ b/src/include/lwip/ip6_frag.h @@ -90,7 +90,7 @@ struct pbuf_custom_ref { }; #endif /* LWIP_PBUF_CUSTOM_REF_DEFINED */ -err_t ip6_frag(struct pbuf *p, struct netif *netif, ip6_addr_t *dest); +err_t ip6_frag(struct pbuf *p, struct netif *netif, const ip6_addr_t *dest); #endif /* LWIP_IPV6 && LWIP_IPV6_FRAG */