]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
*: fix some inconsistent control statement style 7529/head
authorVito Caputo <vcaputo@pengaru.com>
Sat, 2 Dec 2017 00:49:52 +0000 (16:49 -0800)
committerVito Caputo <vcaputo@pengaru.com>
Sat, 2 Dec 2017 00:49:52 +0000 (16:49 -0800)
src/basic/set.c
src/core/load-fragment.c
src/login/loginctl.c
src/network/networkd-brvlan.c
src/network/networkd-link.c
src/network/networkd-manager.c
src/resolve/resolved-dns-rr.c
src/shared/bus-unit-util.c
src/shared/bus-util.c
src/systemctl/systemctl.c

index 99f204269937e1fc708bd157c33a05566f961577..e554e825ebbeed4dd33ea6c99b1cf3357372d43e 100644 (file)
@@ -39,7 +39,7 @@ int set_make(Set **ret, const struct hash_ops *hash_ops HASHMAP_DEBUG_PARAMS, vo
 
                 va_start(ap, add);
 
-                for(;;) {
+                for (;;) {
                         void *arg = va_arg(ap, void*);
 
                         if (!arg)
index 220e617699e22fed843a8c0a25ef25ace45607d8..035fa8844bc4f939ec8c0c795bbd64c3f5109ff8 100644 (file)
@@ -3557,7 +3557,7 @@ int config_parse_device_allow(
         }
 
         r = unit_full_printf(userdata, rvalue, &t);
-        if(r < 0) {
+        if (r < 0) {
                 log_syntax(unit, LOG_WARNING, filename, line, r,
                            "Failed to resolve specifiers in %s, ignoring: %m",
                            rvalue);
index f658afa8a21d5afdf2f5785a6bc678fc4baceb84..dfcaff6195d37883b13330c9b85b7e1d4021e827 100644 (file)
@@ -727,7 +727,7 @@ static int print_seat_status_info(sd_bus *bus, const char *path, bool *new_line)
                         printf(fmt "\n", __VA_ARGS__);                  \
                 else                                                    \
                         printf("%s=" fmt "\n", name, __VA_ARGS__);      \
-        } while(0)
+        } while (0)
 
 static int print_property(const char *name, sd_bus_message *m, const char *contents) {
         int r;
index 1755ba1ac2f39a57d1ff416dce3f0c5c600638cb..99dd416296cd7e2c9f024c829f7d9b1c019bd276 100644 (file)
@@ -142,7 +142,7 @@ static int append_vlan_info_data(Link *const link, sd_netlink_message *req, uint
 
                 next:
                         i = j;
-                } while(!done);
+                } while (!done);
         }
         if (!cnt)
                 return -EINVAL;
index 67cdea0b9f9f53d423a8ff6fddd0f332f5156e74..5b8288fb7241c6408e6a9eb482ce22ea42ff3dd9 100644 (file)
@@ -3272,7 +3272,7 @@ int link_update(Link *link, sd_netlink_message *m) {
                                                                          ARPHRD_ETHER,
                                                                          (const uint8_t *)&link->mac,
                                                                          sizeof(link->mac));
-                                        if(r < 0)
+                                        if (r < 0)
                                                 return log_link_warning_errno(link, r, "Could not update MAC client id in DHCP client: %m");
                                         break;
                                 default:
index 527d2623cae2ac7a5d41e5156c6bdafe70438db8..c2c41d978b88ab0d76658678b9e6e479ee584feb 100644 (file)
@@ -816,7 +816,7 @@ int manager_rtnl_process_rule(sd_netlink *rtnl, sd_netlink_message *message, voi
 
         switch (type) {
         case RTM_NEWRULE:
-                if(!rule) {
+                if (!rule) {
                         r = routing_policy_rule_add_foreign(m, family, &from, from_prefixlen, &to, to_prefixlen, tos, fwmark, table, iif, oif, &rule);
                         if (r < 0) {
                                 log_warning_errno(r, "Could not add rule: %m");
index b44ab00bb5c9f8495a47c49ea230954ba6ba5ed3..898d5b3c364a633cd2a6cde9ea7326bcba4fc768 100644 (file)
@@ -1571,7 +1571,7 @@ DnsResourceRecord *dns_resource_record_copy(DnsResourceRecord *rr) {
                         return NULL;
 
                 copy->hinfo.os = strdup(rr->hinfo.os);
-                if(!copy->hinfo.os)
+                if (!copy->hinfo.os)
                         return NULL;
                 break;
 
index 8a07318455cec2786ad356faf8d824c27401fe83..cfd4c833b0b30671de178920cd4ef2d992edbba8 100644 (file)
@@ -1247,7 +1247,7 @@ int bus_append_unit_property_assignment(sd_bus_message *m, const char *assignmen
                                 done = true;
                                 break;
                         }
-                } while(!done);
+                } while (!done);
 
                 if (explicit_path) {
                         r = extract_first_word(&eq, &path, NULL, EXTRACT_QUOTES|EXTRACT_CUNESCAPE);
index 7d5ea0c0acf53019bdd7c1cd9a61991ee8cb6884..7a185461a3ebd5e3e347b08b670c2603d90ab53f 100644 (file)
@@ -660,7 +660,7 @@ int bus_connect_user_systemd(sd_bus **_bus) {
                         printf(fmt "\n", __VA_ARGS__);                  \
                 else                                                    \
                         printf("%s=" fmt "\n", name, __VA_ARGS__);      \
-        } while(0)
+        } while (0)
 
 int bus_print_property(const char *name, sd_bus_message *property, bool value, bool all) {
         char type;
index e121d580cff79d5afb61bb1fefa1dd53c35fc8d0..33fbaf995011ef5fbcfc73fc66a67fdc5244fd97 100644 (file)
@@ -4779,7 +4779,7 @@ skip:
                         printf(fmt "\n", __VA_ARGS__);                  \
                 else                                                    \
                         printf("%s=" fmt "\n", name, __VA_ARGS__);      \
-        } while(0)
+        } while (0)
 
 static int print_property(const char *name, sd_bus_message *m, const char *contents) {
         int r;