Skip to content
Commit 62a5260e authored by Robert Lubos's avatar Robert Lubos Committed by Daniel DeGrasse
Browse files

net: Fix alignment error with net_ipaddr_copy()



As struct sockaddr have now alignment of 4 bytes, net_ipaddr_copy()
gives the following error if used for sockaddr:

  error: alignment 1 of ‘struct <anonymous>’ is less than 4
  [-Werror=packed-not-aligned]

Just use memcpy() instead, net_ipaddr_copy() was intended to use with IP
addresses, not socket related structs.

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
parent 48d1a01b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment