diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-04-14 07:42:58 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-04-14 23:23:11 +0200 |
commit | 2c28eb0266ac750d744487c370657fc3d4ec8e6a (patch) | |
tree | be8aa076323922970d0c50cb710928ee83b42ed2 /src/libsystemd-network/test-dhcp6-client.c | |
parent | dhcp6-network: constify arguments (diff) | |
download | systemd-2c28eb0266ac750d744487c370657fc3d4ec8e6a.tar.xz systemd-2c28eb0266ac750d744487c370657fc3d4ec8e6a.zip |
libsystemd-network: make constant addresses type-safe
No functional change, just refactoring.
Diffstat (limited to 'src/libsystemd-network/test-dhcp6-client.c')
-rw-r--r-- | src/libsystemd-network/test-dhcp6-client.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsystemd-network/test-dhcp6-client.c b/src/libsystemd-network/test-dhcp6-client.c index a987a17806..37d5a0cf6c 100644 --- a/src/libsystemd-network/test-dhcp6-client.c +++ b/src/libsystemd-network/test-dhcp6-client.c @@ -59,8 +59,7 @@ static const struct in6_addr local_address = { { { 0xfe, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, } } }; -static const struct in6_addr mcast_address = - IN6ADDR_ALL_DHCP6_RELAY_AGENTS_AND_SERVERS_INIT; +static const struct in6_addr mcast_address = IN6_ADDR_ALL_DHCP6_RELAY_AGENTS_AND_SERVERS; static const struct in6_addr ia_na_address1 = { { { IA_NA_ADDRESS1_BYTES } } }; static const struct in6_addr ia_na_address2 = { { { IA_NA_ADDRESS2_BYTES } } }; static const struct in6_addr ia_pd_prefix1 = { { { IA_PD_PREFIX1_BYTES } } }; |