summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-05-23 18:07:42 +0200
committerLennart Poettering <lennart@poettering.net>2016-05-26 15:34:42 +0200
commitd914f7a5639b72a400472dda622280f1015b6866 (patch)
tree5a7777a8e23323c41d7023647d87d22cf7bca11a /src
parentc9e458a419ae8961a27cea19d0a15b7058a132f9 (diff)
ipv4acd: no need to memcpy() where assignment suffices
Diffstat (limited to 'src')
-rw-r--r--src/libsystemd-network/sd-ipv4acd.c2
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;
}