]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: minor style fixes
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 21 Feb 2021 06:26:15 +0000 (15:26 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 3 Mar 2021 07:12:33 +0000 (16:12 +0900)
src/network/networkd-state-file.c

index c09880f14ddfdc0b30439c1708345225d9307876..06670a7b8b69db04bb515bd6df2d1831a01d8986 100644 (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;