diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-05-23 18:07:42 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-05-26 15:34:42 +0200 |
commit | d914f7a5639b72a400472dda622280f1015b6866 (patch) | |
tree | 5a7777a8e23323c41d7023647d87d22cf7bca11a /src | |
parent | c9e458a419ae8961a27cea19d0a15b7058a132f9 (diff) |
ipv4acd: no need to memcpy() where assignment suffices
Diffstat (limited to 'src')
-rw-r--r-- | src/libsystemd-network/sd-ipv4acd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/sd-ipv4acd.c b/src/libsystemd-network/sd-ipv4acd.c index 59b87f42b7..12003fb796 100644 --- a/src/libsystemd-network/sd-ipv4acd.c +++ b/src/libsystemd-network/sd-ipv4acd.c @@ -433,7 +433,7 @@ int sd_ipv4acd_set_mac(sd_ipv4acd *ll, const struct ether_addr *addr) { assert_return(addr, -EINVAL); assert_return(ll->state == IPV4ACD_STATE_INIT, -EBUSY); - memcpy(&ll->mac_addr, addr, ETH_ALEN); + ll->mac_addr = *addr; return 0; } |