uip: de-__gptrget()-call in uip_ipaddr_copy()

This commit is contained in:
René van Dorst
2026-04-18 22:20:46 +02:00
parent 642030c7b2
commit 8134ca7ec7
+2 -2
View File
@@ -880,8 +880,8 @@ struct uip_udp_conn *uip_udp_new(uip_ipaddr_t *ripaddr, u16_t rport) __banked;
*/ */
#if !UIP_CONF_IPV6 #if !UIP_CONF_IPV6
#define uip_ipaddr_copy(dest, src) do { \ #define uip_ipaddr_copy(dest, src) do { \
((u16_t *)dest)[0] = ((u16_t *)src)[0]; \ ((u16_t __xdata *)dest)[0] = ((u16_t __xdata *)src)[0]; \
((u16_t *)dest)[1] = ((u16_t *)src)[1]; \ ((u16_t __xdata *)dest)[1] = ((u16_t __xdata *)src)[1]; \
} while(0) } while(0)
#else /* !UIP_CONF_IPV6 */ #else /* !UIP_CONF_IPV6 */
#define uip_ipaddr_copy(dest, src) memcpy(dest, src, sizeof(uip_ip6addr_t)) #define uip_ipaddr_copy(dest, src) memcpy(dest, src, sizeof(uip_ip6addr_t))