From c2ebf5544b4268eac9b32c7f3a689ff646d96eef Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Wed, 29 Oct 2014 18:56:33 +0100 Subject: [PATCH] fixed cosmetic bug #43499: wrong argument order in src/include/netif/etharp.h defines --- src/include/netif/etharp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/include/netif/etharp.h b/src/include/netif/etharp.h index 0d50a595..5dfa976b 100644 --- a/src/include/netif/etharp.h +++ b/src/include/netif/etharp.h @@ -150,13 +150,13 @@ PACK_STRUCT_END /** MEMCPY-like macro to copy to/from struct eth_addr's that are local variables * or known to be 32-bit aligned within the protocol header. */ #ifndef ETHADDR32_COPY -#define ETHADDR32_COPY(src, dst) SMEMCPY(src, dst, ETHARP_HWADDR_LEN) +#define ETHADDR32_COPY(dst, src) SMEMCPY(dst, src, ETHARP_HWADDR_LEN) #endif /** MEMCPY-like macro to copy to/from struct eth_addr's that are no local * variables and known to be 16-bit aligned within the protocol header. */ #ifndef ETHADDR16_COPY -#define ETHADDR16_COPY(src, dst) SMEMCPY(src, dst, ETHARP_HWADDR_LEN) +#define ETHADDR16_COPY(dst, src) SMEMCPY(dst, src, ETHARP_HWADDR_LEN) #endif #if LWIP_ARP /* don't build if not configured for use in lwipopts.h */