From 3572ec784d20a55c8a07b299e414c1748b607ebb Mon Sep 17 00:00:00 2001 From: jifl Date: Fri, 18 Jan 2008 19:45:15 +0000 Subject: [PATCH] Fix simple compilation error with some compilers to preserve const-ness of ethaddr - from Luca Ceresoli --- src/netif/etharp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/netif/etharp.c b/src/netif/etharp.c index 4631a6a6..a8fd64fc 100644 --- a/src/netif/etharp.c +++ b/src/netif/etharp.c @@ -625,7 +625,7 @@ etharp_arp_input(struct netif *netif, struct eth_addr *ethaddr, struct pbuf *p) u8_t i; u8_t for_us; #if LWIP_AUTOIP - u8_t * ethdst_hwaddr; + const u8_t * ethdst_hwaddr; #endif /* LWIP_AUTOIP */ 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 */ struct etharp_hdr *hdr; #if LWIP_AUTOIP - u8_t * ethdst_hwaddr; + const u8_t * ethdst_hwaddr; #endif /* LWIP_AUTOIP */ /* allocate a pbuf for the outgoing ARP request packet */