mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-23 22:56:00 +00:00
Fix simple compilation error with some compilers to preserve const-ness of ethaddr - from Luca Ceresoli
This commit is contained in:
parent
6f00cbb6ef
commit
3572ec784d
|
@ -625,7 +625,7 @@ etharp_arp_input(struct netif *netif, struct eth_addr *ethaddr, struct pbuf *p)
|
||||||
u8_t i;
|
u8_t i;
|
||||||
u8_t for_us;
|
u8_t for_us;
|
||||||
#if LWIP_AUTOIP
|
#if LWIP_AUTOIP
|
||||||
u8_t * ethdst_hwaddr;
|
const u8_t * ethdst_hwaddr;
|
||||||
#endif /* LWIP_AUTOIP */
|
#endif /* LWIP_AUTOIP */
|
||||||
|
|
||||||
LWIP_ERROR("netif != NULL", (netif != NULL), return;);
|
LWIP_ERROR("netif != NULL", (netif != NULL), return;);
|
||||||
|
@ -1039,7 +1039,7 @@ etharp_raw(struct netif *netif, const struct eth_addr *ethsrc_addr,
|
||||||
u8_t k; /* ARP entry index */
|
u8_t k; /* ARP entry index */
|
||||||
struct etharp_hdr *hdr;
|
struct etharp_hdr *hdr;
|
||||||
#if LWIP_AUTOIP
|
#if LWIP_AUTOIP
|
||||||
u8_t * ethdst_hwaddr;
|
const u8_t * ethdst_hwaddr;
|
||||||
#endif /* LWIP_AUTOIP */
|
#endif /* LWIP_AUTOIP */
|
||||||
|
|
||||||
/* allocate a pbuf for the outgoing ARP request packet */
|
/* allocate a pbuf for the outgoing ARP request packet */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user