From: Yu Watanabe Date: Sun, 21 Feb 2021 06:26:15 +0000 (+0900) Subject: network: minor style fixes X-Git-Tag: v248-rc3~67^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=44e1f7e3dc29b6d5cc790a66da04d4ff806eab35;p=thirdparty%2Fsystemd.git network: minor style fixes --- diff --git a/src/network/networkd-state-file.c b/src/network/networkd-state-file.c index c09880f14dd..06670a7b8b6 100644 --- a/src/network/networkd-state-file.c +++ b/src/network/networkd-state-file.c @@ -75,10 +75,12 @@ static int ordered_set_put_in4_addr(OrderedSet *s, const struct in_addr *address return r; } -static int ordered_set_put_in4_addrv(OrderedSet *s, - const struct in_addr *addresses, - size_t n, - bool (*predicate)(const struct in_addr *addr)) { +static int ordered_set_put_in4_addrv( + OrderedSet *s, + const struct in_addr *addresses, + size_t n, + bool (*predicate)(const struct in_addr *addr)) { + int r, c = 0; assert(s); @@ -350,9 +352,10 @@ static void serialize_addresses( bool conditional6, int (*lease6_get_addr)(sd_dhcp6_lease*, const struct in6_addr**), int (*lease6_get_fqdn)(sd_dhcp6_lease*, char ***)) { - int r; bool _space = false; + int r; + if (!space) space = &_space;