]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tree-wide: fix indentation 882/head
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Wed, 5 Aug 2015 22:31:09 +0000 (00:31 +0200)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Wed, 5 Aug 2015 22:44:19 +0000 (00:44 +0200)
src/core/dbus-cgroup.c
src/core/execute.c
src/libsystemd/sd-bus/bus-kernel.c
src/locale/localectl.c
src/network/networkctl.c
src/network/networkd-dhcp4.c
src/network/networkd-manager.c
src/shared/bus-util.c
src/test/test-strv.c
src/tmpfiles/tmpfiles.c
src/udev/udev-rules.c

index 4a9df06016e22600c8c0f5fbce144833a25dc807..9dcc51f2409d914d33134c5cd4e1e7b6b9c9e7e9 100644 (file)
@@ -433,9 +433,9 @@ int bus_cgroup_set_property(
                         if (!f)
                                 return -ENOMEM;
 
-                         if (read) {
+                        if (read) {
                                 fputs("BlockIOReadBandwidth=\n", f);
-                                 LIST_FOREACH(device_bandwidths, a, c->blockio_device_bandwidths)
+                                LIST_FOREACH(device_bandwidths, a, c->blockio_device_bandwidths)
                                         if (a->read)
                                                 fprintf(f, "BlockIOReadBandwidth=%s %" PRIu64 "\n", a->path, a->bandwidth);
                         } else {
index f14ae4d8a6d17fa2aa75d8ccb74d6ff72fddf06b..125cb0dbd488fd6b1a6580a63a29cb5715dd60aa 100644 (file)
@@ -2211,7 +2211,7 @@ int exec_context_load_environment(Unit *unit, const ExecContext *c, char ***l) {
 
 static bool tty_may_match_dev_console(const char *tty) {
         _cleanup_free_ char *active = NULL;
-       char *console;
+        char *console;
 
         if (startswith(tty, "/dev/"))
                 tty += 5;
index 6ac5ebc3daef321626c418a13afb532e67270e7f..d72535b8bc4b1991b41b6f2998b2cc4605e839c6 100644 (file)
@@ -212,7 +212,9 @@ static int bus_message_setup_bloom(sd_bus_message *m, struct kdbus_bloom_filter
                                 return r;
 
                         add_bloom_arg(data, m->bus->bloom_size, m->bus->bloom_n_hash, i, t);
-                } if (type == SD_BUS_TYPE_ARRAY && STR_IN_SET(contents, "s", "o", "g")) {
+                }
+
+                if (type == SD_BUS_TYPE_ARRAY && STR_IN_SET(contents, "s", "o", "g")) {
 
                         /* As well as array of simple strings of any kinds */
                         r = sd_bus_message_enter_container(m, type, contents);
index 3616f4af1f1831fc6ed0b1e22f526d92f2654dc2..1e06f2251cd14234eb7052c94de6513b8336fb88 100644 (file)
@@ -467,9 +467,9 @@ static int list_x11_keymaps(sd_bus *bus, char **args, unsigned n) {
                 } else
                         *w = 0;
 
-                 r = strv_extend(&list, l);
-                 if (r < 0)
-                         return log_oom();
+                r = strv_extend(&list, l);
+                if (r < 0)
+                        return log_oom();
         }
 
         if (strv_isempty(list)) {
index 6c36a4ecface4ccde6b4311f6a5d67192ec1b270..c9b53dc3f629ff69a2d37104a3c80f2086e51dd2 100644 (file)
@@ -227,7 +227,7 @@ static int list_links(int argc, char *argv[], void *userdata) {
                 _cleanup_device_unref_ sd_device *d = NULL;
                 const char *on_color_operational, *off_color_operational,
                            *on_color_setup, *off_color_setup;
-                 char devid[2 + DECIMAL_STR_MAX(int)];
+                char devid[2 + DECIMAL_STR_MAX(int)];
                 _cleanup_free_ char *t = NULL;
 
                 sd_network_link_get_operational_state(links[i].ifindex, &operational_state);
index 5454bdd97bce1e5bee0f565d540e70c26b0977f5..6288644a1a3a6cb2a7b7ecc69581790f4be720e9 100644 (file)
@@ -248,7 +248,7 @@ static int dhcp_lease_lost(Link *link) {
                         address->in_addr.in = addr;
                         address->prefixlen = prefixlen;
 
-                       address_drop(address, link, &link_address_drop_handler);
+                        address_drop(address, link, &link_address_drop_handler);
                 }
         }
 
@@ -620,8 +620,8 @@ int dhcp4_configure(Link *link) {
                         return r;
                 r = sd_dhcp_client_set_request_option(link->dhcp_client,
                                                       DHCP_OPTION_CLASSLESS_STATIC_ROUTE);
-                        if (r < 0)
-                                return r;
+                if (r < 0)
+                        return r;
         }
 
         if (link->network->dhcp_sendhost) {
index e718c4840a18914a79b9339bdd321bf578b6401f..09a929e0da4322d064c0296c33954f6e09020a9d 100644 (file)
@@ -145,7 +145,9 @@ int manager_connect_bus(Manager *m) {
                         return log_error_errno(r, "Failed to install bus reconnect time event: %m");
 
                 return 0;
-        } if (r < 0)
+        }
+
+        if (r < 0)
                 return r;
 
         r = sd_bus_add_match(m->bus, &m->prepare_for_sleep_slot,
index 11350dad71935bf9988bb12912c738477bbfba45..aa87cd0910239d5efbc186355db131fbf958be6e 100644 (file)
@@ -972,8 +972,8 @@ static int map_basic(sd_bus *bus, const char *member, sd_bus_message *m, sd_bus_
         }
 
         case SD_BUS_TYPE_ARRAY: {
-               _cleanup_strv_free_ char **l = NULL;
-               char ***p = userdata;
+                _cleanup_strv_free_ char **l = NULL;
+                char ***p = userdata;
 
                 r = bus_message_read_strv_extend(m, &l);
                 if (r < 0)
index d5ea2b3fab15e6d8d4d8cab65f28319e187a77c4..6e3c81395c81189312a52e60beebdb54e1e308b4 100644 (file)
@@ -307,7 +307,7 @@ static void test_strv_sort(void) {
 }
 
 static void test_strv_extend_strv_concat(void) {
-         _cleanup_strv_free_ char **a = NULL, **b = NULL;
+        _cleanup_strv_free_ char **a = NULL, **b = NULL;
 
         a = strv_new("without", "suffix", NULL);
         b = strv_new("with", "suffix", NULL);
@@ -323,7 +323,7 @@ static void test_strv_extend_strv_concat(void) {
 }
 
 static void test_strv_extend_strv(void) {
-         _cleanup_strv_free_ char **a = NULL, **b = NULL;
+        _cleanup_strv_free_ char **a = NULL, **b = NULL;
 
         a = strv_new("abc", "def", "ghi", NULL);
         b = strv_new("jkl", "mno", "pqr", NULL);
index 271984b5a845c361b8dd819eec824c3775f8a016..d6f78015615c22907c5a25ee4fa508cd5de477d2 100644 (file)
@@ -616,7 +616,7 @@ static int path_set_perms(Item *i, const char *path) {
                                 if (!(st.st_mode & 0111))
                                         m &= ~0111;
                                 if (!(st.st_mode & 0222))
-                                m &= ~0222;
+                                        m &= ~0222;
                                 if (!(st.st_mode & 0444))
                                         m &= ~0444;
                                 if (!S_ISDIR(st.st_mode))
@@ -641,7 +641,7 @@ static int path_set_perms(Item *i, const char *path) {
                         if (chown(fn,
                                   i->uid_set ? i->uid : UID_INVALID,
                                   i->gid_set ? i->gid : GID_INVALID) < 0)
-                        return log_error_errno(errno, "chown(%s) failed: %m", path);
+                                return log_error_errno(errno, "chown(%s) failed: %m", path);
                 }
         }
 
index 368da9b1aeda5959b8f9dd7ab424f9912066de92..43255fb9d4d28102d815c029921bd1e980e19dbd 100644 (file)
@@ -2125,7 +2125,7 @@ int udev_rules_apply_to_event(struct udev_rules *rules,
                                                   rule->rule.filename_line);
                                         /* return the result from earlier run */
                                         if (event->builtin_ret & (1 << cur->key.builtin_cmd))
-                                        if (cur->key.op != OP_NOMATCH)
+                                                if (cur->key.op != OP_NOMATCH)
                                                         goto nomatch;
                                         break;
                                 }