]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tree-wide: remove some spurious newlines
authorNick Rosbrook <enr0n@ubuntu.com>
Wed, 29 Jan 2025 13:57:44 +0000 (08:57 -0500)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 29 Jan 2025 16:17:46 +0000 (16:17 +0000)
Specifically, remove double newlines, and newlines before '}'.

29 files changed:
src/basic/format-util.c
src/basic/in-addr-util.c
src/basic/io-util.h
src/core/namespace.c
src/core/swap.c
src/home/homed-conf.c
src/journal/journald-stream.c
src/libsystemd-network/sd-dhcp-client.c
src/libsystemd/sd-bus/bus-message.c
src/libsystemd/sd-journal/test-journal-interleaving.c
src/network/networkd-radv.c
src/network/test-network.c
src/path/path.c
src/resolve/resolved-conf.c
src/resolve/resolved-varlink.c
src/resolve/test-dnssec-complex.c
src/shared/cgroup-setup.c
src/shared/dissect-image.c
src/shared/group-record.c
src/ssh-generator/ssh-proxy.c
src/sysupdate/sysupdate-feature.c
src/test/test-argv-util.c
src/test/test-firewall-util.c
src/test/test-load-fragment.c
src/test/test-parse-helpers.c
src/test/test-serialize.c
src/test/test-varlink-idl.c
src/test/test-varlink.c
src/xdg-autostart-generator/xdg-autostart-service.h

index 09cb716e7d1338c4d3b19f73ed5f20e32e9c5da5..079b32c04db3ff7748b8b75049e5a291c13c5e82 100644 (file)
@@ -62,5 +62,4 @@ char* format_bytes_full(char *buf, size_t l, uint64_t t, FormatBytesFlag flag) {
 finish:
         buf[l-1] = 0;
         return buf;
-
 }
index fa28d79dcbe2ed8928a64625707b160c9c4b661d..f1f3a195c089d657e3eec4be85b15ceb836bdc99 100644 (file)
@@ -942,7 +942,6 @@ int in_addr_prefix_from_string_auto_full(
                 *ret_prefixlen = k;
 
         return 0;
-
 }
 
 void in_addr_hash_func(const union in_addr_union *u, int family, struct siphash *state) {
index e027c1a878ccd80f5cb0b2d412ce1811ed3aae3a..df24e85b06f9ab061380351e00b70e2eec2f2ce3 100644 (file)
@@ -42,5 +42,4 @@ static inline bool FILE_SIZE_VALID_OR_INFINITY(uint64_t l) {
                 return true;
 
         return FILE_SIZE_VALID(l);
-
 }
index 1a0c51fe72fa4fa89a5bca7cdb6f31ffd66c5f83..07e7abe7428fde4ebee74767c727c21a5e44a03b 100644 (file)
@@ -3100,7 +3100,6 @@ static int make_tmp_prefix(const char *prefix) {
         }
 
         return 0;
-
 }
 
 static int setup_one_tmp_dir(const char *id, const char *prefix, char **path, char **tmp_path) {
index f2d1d5608cdebd3dcb9a36374bffb3cea6204510..28afba3790170ce795a98c6a291a02f87840a782 100644 (file)
@@ -617,7 +617,6 @@ static void swap_dump(Unit *u, FILE *f, const char *prefix) {
 
                 exec_command_dump(s->exec_command + c, f, prefix2);
         }
-
 }
 
 static int swap_spawn(Swap *s, ExecCommand *c, PidRef *ret_pid) {
index 21cb5106881ca78fdd890aed819eaef2e8ec8a9a..87b3e8cd845550ba804f307ea7ca3344438de846 100644 (file)
@@ -41,5 +41,4 @@ int config_parse_default_file_system_type(
         }
 
         return free_and_strdup_warn(s, empty_to_null(rvalue));
-
 }
index f039a33ad28b6bb8dc65e3c8607fb1473270955f..30a7737712703ec79d39b2397d7358ae05c9bf9d 100644 (file)
@@ -999,5 +999,4 @@ void stdout_stream_send_notify(StdoutStream *s) {
 
         LIST_REMOVE(stdout_stream_notify_queue, s->server->stdout_streams_notify_queue, s);
         s->in_notify_queue = false;
-
 }
index 7a8996691269010ca5645040bb50034098b3a39d..5d733baa571c17c101d8c871338eeef91ad2af1d 100644 (file)
@@ -1383,7 +1383,6 @@ static int client_initialize_time_events(sd_dhcp_client *client) {
                 client_stop(client, r);
 
         return 0;
-
 }
 
 static int client_initialize_events(sd_dhcp_client *client, sd_event_io_handler_t io_callback) {
index c8962e4cc0661aba5312106f6367ba9178d0a3d8..808d52f876de033502dd55845425550ad8cb46bf 100644 (file)
@@ -4384,7 +4384,6 @@ static int bus_message_get_arg_skip(
                 if (r < 0)
                         return r;
         }
-
 }
 
 int bus_message_get_arg(sd_bus_message *m, unsigned i, const char **str) {
index 211d8c9dc06523f0fe794f143a08dc2d08e3d9b2..1000df76804cd64e1b258c88b17dfd49b280d9de 100644 (file)
@@ -142,7 +142,6 @@ static void test_check_numbers_up(sd_journal *j, unsigned count) {
                 else
                         ASSERT_OK_POSITIVE(sd_journal_previous(j));
         }
-
 }
 
 static void setup_sequential(void) {
index fbf87091a369b51929ed21a86b0dde8ce19628f9..644051d844c5aa1b99644ba4aab68f01df896178 100644 (file)
@@ -397,7 +397,6 @@ set_domains:
                         s,
                         link->network->router_dns_lifetime_usec,
                         /* valid_until = */ USEC_INFINITY);
-
 }
 
 static int radv_find_uplink(Link *link, Link **ret) {
index 5f3b4c0b3110aee87ff9a34890e8cfc3d5dd2ac5..89dd98f560e8a5f2bda2c80ce0dc547a0632e06c 100644 (file)
@@ -222,7 +222,6 @@ static void test_dhcp_hostname_shorten_overlong(void) {
                 assert_se(r == -EDOM);
                 assert_se(shortened == NULL);
         }
-
 }
 
 int main(void) {
index 6ca2bd8c3885e002e875903135c4146d7a5b6990..18a88e1c69eeb22bc013db0959e7f0d3a3fe91a3 100644 (file)
@@ -111,7 +111,6 @@ static const char* const path_table[_SD_PATH_MAX] = {
         [SD_PATH_USER_SEARCH_CREDENTIAL_STORE]                = "user-search-credential-store",
         [SD_PATH_USER_CREDENTIAL_STORE_ENCRYPTED]             = "user-credential-store-encrypted",
         [SD_PATH_USER_SEARCH_CREDENTIAL_STORE_ENCRYPTED]      = "user-search-credential-store-encrypted",
-
 };
 
 static int order_cmp(const size_t *a, const size_t *b) {
index 9d70d98d1d41b80c6765b528061fee77ab6354be..572003077959b8cd51f584bc50e8377b6142bb65 100644 (file)
@@ -412,5 +412,4 @@ int manager_parse_config_file(Manager *m) {
         }
 #endif
         return 0;
-
 }
index 02e00eef7dad29d537b6396bf279565280da0a25..e5fdc34659d0a75e2eb68815fe13ed261c268001 100644 (file)
@@ -1399,7 +1399,6 @@ fail:
         if (set_isempty(m->varlink_dns_configuration_subscription))
                 manager_stop_dns_configuration_monitor(m);
 
-
         return log_debug_errno(r, "Failed to subscribe client to DNS configuration monitor: %m");
 }
 
index 05a5f07aadc0ee99e016337cd332b49740664792..30f49a780be03a466d74e5ccfe69ab3025b465ff 100644 (file)
@@ -93,7 +93,6 @@ static void test_hostname_lookup(sd_bus *bus, const char *name, int family, cons
                 assert_se(!result);
                 log_info("[OK] %s/%s succeeded.", name, af);
         }
-
 }
 
 int main(int argc, char* argv[]) {
index 49d40f60d855ffc9a3dbc80a2538b65e285ad43b..0153454b982c456b434c369e050c9f95ccec4c07 100644 (file)
@@ -113,7 +113,6 @@ bool cg_is_unified_wanted(void) {
                 return (wanted = false);
 
         return (wanted = true);
-
 }
 
 bool cg_is_legacy_wanted(void) {
index e4ae89478213596126b7900947cc971e1fee9170..92b738150984d1f2870e9292e2af0c490137f734 100644 (file)
@@ -3841,7 +3841,6 @@ int dissect_loop_device_and_warn(
                         dissect_loop_device(loop, verity, mount_options, image_policy, flags, ret),
                         loop->backing_file ?: loop->node,
                         verity);
-
 }
 
 bool dissected_image_verity_candidate(const DissectedImage *image, PartitionDesignator partition_designator) {
@@ -4469,7 +4468,6 @@ int mountfsd_mount_directory(
         if (!isempty(error_id))
                 return log_error_errno(sd_varlink_error_to_errno(error_id, reply), "Failed to call MountDirectory() varlink call: %s", error_id);
 
-
         static const sd_json_dispatch_field dispatch_table[] = {
                 { "mountFileDescriptor", _SD_JSON_VARIANT_TYPE_INVALID, sd_json_dispatch_uint, 0, SD_JSON_MANDATORY },
                 {}
index 6d696bdaaa33ca0e28d0c09d4f0a6c021476092a..911c6c8f0bc4f04058684dfb70390ddd8004c146 100644 (file)
@@ -368,5 +368,4 @@ int group_record_match(GroupRecord *h, const UserDBMatch *match) {
         }
 
         return true;
-
 }
index 0085e2a08729e863f8a0b5c45257cf6657e14018..94ba3d95ac003187ecf26984af0e71682b0345a9 100644 (file)
@@ -47,7 +47,6 @@ static int process_vsock_cid(unsigned cid, const char *port) {
 
         log_debug("Successfully sent AF_VSOCK socket via STDOUT.");
         return 0;
-
 }
 
 static int process_vsock_string(const char *host, const char *port) {
index 05c1924d353db05e0fbe7632bbc355f727521214..4b811ac35113c5bb83a15c30166509538cab003b 100644 (file)
@@ -78,7 +78,6 @@ static int config_parse_url_specifiers(
         return free_and_replace(*s, resolved);
 }
 
-
 int feature_read_definition(Feature *f, const char *path, const char *const *dirs) {
         assert(f);
 
index f7b8f9478b9e861445f25d9ac428e4c1ffcea3f0..4a3ac700ac5ff0497cf5433d0a0de5260319d8c1 100644 (file)
@@ -126,7 +126,6 @@ TEST(argv_help) {
         assert_se(argv_looks_like_help(5, STRV_MAKE("program", "--help", "arg1", "-h", "--help")));
         assert_se(!argv_looks_like_help(4, STRV_MAKE("program","arg1", "arg2", "-H")));
         assert_se(!argv_looks_like_help(3, STRV_MAKE("program", "--Help", "arg2")));
-
 }
 
 static int intro(void) {
index 67a618009de4140ebc6c6429bd293ef5826353da..93223be29de9b493d7c3bf497e08518118fd8704 100644 (file)
@@ -43,7 +43,6 @@ static void test_v6(FirewallContext *ctx) {
 
         ASSERT_OK(fw_add_local_dnat(&ctx, true, AF_INET6, IPPROTO_TCP, 4711, &u2, 815, &u1));
         ASSERT_OK(fw_add_local_dnat(&ctx, false, AF_INET6, IPPROTO_TCP, 4711, &u2, 815, NULL));
-
 }
 
 static union in_addr_union *parse_addr(const char *str, union in_addr_union *u) {
index 038165aa176fbffe2ee53f0a69da8942efd74585..8883c4e4fc8c984bff57c4a67477298c1f9aea49 100644 (file)
@@ -928,7 +928,6 @@ TEST(config_parse_memory_limit) {
                 assert_se(r >= 0);
                 assert_se(*test->result == test->expected);
         }
-
 }
 
 TEST(contains_instance_specifier_superset) {
index 20d4c2f5545211767b1b930f159d1ff69a70d8d9..e63b4df4eb8d4953f02365e5a2350dcafeb66880 100644 (file)
@@ -125,7 +125,6 @@ TEST(path_simplify_and_warn) {
         assert_se(test_path_simplify_and_warn_one("/aaaa", "/aaaa", 0) == 0);
         assert_se(test_path_simplify_and_warn_one("/aaaa", "/aaaa", PATH_CHECK_ABSOLUTE) == 0);
         assert_se(test_path_simplify_and_warn_one("/aaaa", "/aaaa", PATH_CHECK_RELATIVE) == -EINVAL);
-
 }
 
 DEFINE_TEST_MAIN(LOG_INFO);
index 40abf6cdcf6acc4496d7c5af74e3b5c762c0074b..755aa9d869a5a00b989250eff8281fab3496a123 100644 (file)
@@ -205,7 +205,6 @@ TEST(serialize_item_hexmem) {
         _cleanup_free_ char *line = NULL;
         assert_se(read_line(f, LONG_LINE_MAX, &line) > 0);
         ASSERT_STREQ(line, "a=ffffff");
-
 }
 
 TEST(serialize_item_base64mem) {
index 41dbfbdb5bce05eef3a0d482902f6e992fed09ef..9de50641e610a21825364201f7112af7b03dcd36 100644 (file)
@@ -223,7 +223,6 @@ TEST(parse) {
                                     "type Foo (b: bool, c: foo, c: int)", NULL, NULL, NULL) == -ENETUNREACH); /* unresolved type */
         assert_se(varlink_idl_parse("interface org.freedesktop.Foo\n"
                                     "type Foo ()", NULL, NULL, NULL) == -EBADMSG); /* empty struct/enum */
-
 }
 
 TEST(interface_name_is_valid) {
index 0708ec1446fdae23509d1a24058a5f1c1d765bf0..649433b3d555082cf4c5be0d9bdc518d6ec6f9b7 100644 (file)
@@ -454,7 +454,6 @@ TEST(invalid_parameter) {
                                       SD_JSON_BUILD_PAIR_STRING("iexist", "foo"),
                                       SD_JSON_BUILD_PAIR_STRING("idontexist", "bar")) >= 0);
 
-
         assert_se(sd_event_loop(e) >= 0);
 }
 
index 15a29da1bea4ba7705989b1b0e9d4a2cf5529905..390670eedeaeea0a53bd71b761d86a342099176a 100644 (file)
@@ -23,7 +23,6 @@ typedef struct XdgAutostartService {
 
         bool hidden;
         bool systemd_skip;
-
 } XdgAutostartService;
 
 XdgAutostartService * xdg_autostart_service_free(XdgAutostartService *s);