From: Yu Watanabe Date: Sun, 6 Feb 2022 13:34:04 +0000 (+0900) Subject: sd-dhcp6-client: use in6_addr_to_string() X-Git-Tag: v251-rc1~291^2~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7771233127cada23622b574d2d032d31dfc229c2;p=thirdparty%2Fsystemd.git sd-dhcp6-client: use in6_addr_to_string() --- diff --git a/src/libsystemd-network/sd-dhcp6-client.c b/src/libsystemd-network/sd-dhcp6-client.c index dfb0b2c65fc..03b1c918df9 100644 --- a/src/libsystemd-network/sd-dhcp6-client.c +++ b/src/libsystemd-network/sd-dhcp6-client.c @@ -1437,7 +1437,7 @@ int sd_dhcp6_client_start(sd_dhcp6_client *client) { if (r < 0) { _cleanup_free_ char *p = NULL; - (void) in_addr_to_string(AF_INET6, (const union in_addr_union*) &client->local_address, &p); + (void) in6_addr_to_string(&client->local_address, &p); return log_dhcp6_client_errno(client, r, "Failed to bind to UDP socket at address %s: %m", strna(p)); }