Fixed warnings on whole project introduced by const pointers on ip_addr_t

This commit is contained in:
Sylvain Rochet 2015-02-22 22:50:06 +01:00
parent 65095253a9
commit b4990b5bb4
3 changed files with 4 additions and 4 deletions

View File

@ -591,7 +591,7 @@ ip6_frag_free_pbuf_custom(struct pbuf *p)
* @return ERR_OK if sent successfully, err_t otherwise * @return ERR_OK if sent successfully, err_t otherwise
*/ */
err_t 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 *original_ip6hdr;
struct ip6_hdr *ip6hdr; struct ip6_hdr *ip6hdr;

View File

@ -2704,7 +2704,7 @@ atentry_get_value(struct obj_def *od, u16_t len, void *value)
#if LWIP_ARP #if LWIP_ARP
u8_t id; u8_t id;
struct eth_addr* ethaddr_ret; struct eth_addr* ethaddr_ret;
ip_addr_t* ipaddr_ret; const ip_addr_t* ipaddr_ret;
#endif /* LWIP_ARP */ #endif /* LWIP_ARP */
ip_addr_t ip; ip_addr_t ip;
struct netif *netif; struct netif *netif;
@ -3410,7 +3410,7 @@ ip_ntomentry_get_value(struct obj_def *od, u16_t len, void *value)
#if LWIP_ARP #if LWIP_ARP
u8_t id; u8_t id;
struct eth_addr* ethaddr_ret; struct eth_addr* ethaddr_ret;
ip_addr_t* ipaddr_ret; const ip_addr_t* ipaddr_ret;
#endif /* LWIP_ARP */ #endif /* LWIP_ARP */
ip_addr_t ip; ip_addr_t ip;
struct netif *netif; struct netif *netif;

View File

@ -90,7 +90,7 @@ struct pbuf_custom_ref {
}; };
#endif /* LWIP_PBUF_CUSTOM_REF_DEFINED */ #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 */ #endif /* LWIP_IPV6 && LWIP_IPV6_FRAG */