network: minor style fixes

This commit is contained in:
Yu Watanabe
2021-03-03 16:12:33 +09:00
parent d23a66f274
commit 44e1f7e3dc
+8 -5
View File
@@ -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;