net: contiki: Cast IPv4 and IPv6 in copy macros
Importing patch daef1ea252feca2ae540c2c06f5f49496231a209 from Contiki. Original commit by Adam Dunkels <adam@thingsquare.com> Cast the addresses when copying IPv4 and IPv6 addresses using the IPv4 and IPv6 copy macros. Change-Id: Id34a294c653ec3310ef8152e600db3eb39778ae1 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
ea889225ad
commit
c95a072786
1 changed files with 2 additions and 2 deletions
|
@ -974,10 +974,10 @@ struct uip_udp_conn *uip_udp_new(const uip_ipaddr_t *ripaddr, uint16_t rport);
|
|||
#define uip_ipaddr_copy(dest, src) (*(dest) = *(src))
|
||||
#endif
|
||||
#ifndef uip_ip4addr_copy
|
||||
#define uip_ip4addr_copy(dest, src) (*(dest) = *(src))
|
||||
#define uip_ip4addr_copy(dest, src) (*((uip_ip4addr_t *)dest) = *((uip_ip4addr_t *)src))
|
||||
#endif
|
||||
#ifndef uip_ip6addr_copy
|
||||
#define uip_ip6addr_copy(dest, src) (*(dest) = *(src))
|
||||
#define uip_ip6addr_copy(dest, src) (*((uip_ip6addr_t *)dest) = *((uip_ip6addr_t *)src))
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue