summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-10-07 02:57:54 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-10-07 02:57:54 +0900
commit693ec5ca835b9693a6a0354e120a084f1679fb86 (patch)
tree52180bd2c2c813c49b9c7d0856ef538654a13020
parentcde1f0e8fcf07eec2a19eae89090326dbb565707 (diff)
downloadsystemd-693ec5ca835b9693a6a0354e120a084f1679fb86.tar.gz
network: constify one argument
-rw-r--r--src/network/networkd-address.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-address.c b/src/network/networkd-address.c
index 89b17d3147..a79b99b35a 100644
--- a/src/network/networkd-address.c
+++ b/src/network/networkd-address.c
@@ -733,7 +733,7 @@ int link_drop_addresses(Link *link) {
return r;
}
-static int address_acquire(Link *link, Address *original, Address **ret) {
+static int address_acquire(Link *link, const Address *original, Address **ret) {
union in_addr_union in_addr = IN_ADDR_NULL;
struct in_addr broadcast = {};
_cleanup_(address_freep) Address *na = NULL;