diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-10-13 08:06:44 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-10-13 13:30:38 +0200 |
commit | b1476b52100c01b4f4b936ed2d505a3a64a0b08e (patch) | |
tree | 5f43d474980a622d978d6c45f233d0b2c8f2cad7 /src/network/networkd-address.h | |
parent | network: read peer address, label, broadcast from rtnl message (diff) | |
download | systemd-b1476b52100c01b4f4b936ed2d505a3a64a0b08e.tar.xz systemd-b1476b52100c01b4f4b936ed2d505a3a64a0b08e.zip |
network: constify arguments
Diffstat (limited to '')
-rw-r--r-- | src/network/networkd-address.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/network/networkd-address.h b/src/network/networkd-address.h index dbbfb50fd7..c0552979c5 100644 --- a/src/network/networkd-address.h +++ b/src/network/networkd-address.h @@ -50,12 +50,12 @@ int address_new(Address **ret); Address *address_free(Address *address); int address_get(Link *link, const Address *in, Address **ret); bool address_exists(Link *link, int family, const union in_addr_union *in_addr); -int address_configure(Address *address, Link *link, link_netlink_message_handler_t callback, bool update, Address **ret); -int address_remove(Address *address, Link *link, link_netlink_message_handler_t callback); -bool address_equal(Address *a1, Address *a2); +int address_configure(const Address *address, Link *link, link_netlink_message_handler_t callback, bool update, Address **ret); +int address_remove(const Address *address, Link *link, link_netlink_message_handler_t callback); +bool address_equal(const Address *a1, const Address *a2); bool address_is_ready(const Address *a); -int generate_ipv6_eui_64_address(Link *link, struct in6_addr *ret); +int generate_ipv6_eui_64_address(const Link *link, struct in6_addr *ret); DEFINE_NETWORK_SECTION_FUNCTIONS(Address, address_free); |