Fix some errors in memcpy arguments. No ampersands on array arguments.

This commit is contained in:
Gregory Nutt 2015-01-21 12:42:22 -06:00
parent 32d2a4c548
commit 8132afb3de
3 changed files with 3 additions and 3 deletions

View File

@ -272,7 +272,7 @@ struct ipv6_hdr_s
#ifdef CONFIG_NET_IPv6
# define net_ipv6addr_copy(dest,src) \
memcpy(&dest, &src, sizeof(net_ipv6addr_t))
memcpy(dest, src, sizeof(net_ipv6addr_t))
# define net_ipv6addr_hdrcopy(dest,src) \
net_ipv6addr_copy(dest, src)
#endif

View File

@ -202,7 +202,7 @@ void icmpv6_input(FAR struct net_driver_s *dev)
* REVISIT: What if the link layer is not Ethernet?
*/
memcpy(&(adv->tgtlladdr), &dev->d_mac, IFHWADDRLEN);
memcpy(adv->tgtlladdr, &dev->d_mac, IFHWADDRLEN);
/* Calculate the checksum over both the ICMP header and payload */

View File

@ -146,7 +146,7 @@ void icmpv6_solicit(FAR struct net_driver_s *dev,
* REVISIT: What if the link layer is not Ethernet?
*/
memcpy(&(sol->srclladdr), &dev->d_mac, IFHWADDRLEN);
memcpy(sol->srclladdr, &dev->d_mac, IFHWADDRLEN);
/* Calculate the checksum over both the ICMP header and payload */