summaryrefslogtreecommitdiffstats
path: root/src/core/main.c
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-07-13 18:17:44 +0200
committerMike Yuan <me@yhndnzj.com>2024-07-13 22:58:23 +0200
commit0c7a2a5542eb0b06ae1312082c55b6b12337b9fe (patch)
tree1f4d6f3a542718810f598efb6f1e769a763d9f53 /src/core/main.c
parentcore/import-creds: use proc_cmdline_get_bool() (diff)
downloadsystemd-0c7a2a5542eb0b06ae1312082c55b6b12337b9fe.tar.xz
systemd-0c7a2a5542eb0b06ae1312082c55b6b12337b9fe.zip
core/main: cast ignored retval of machine_id_setup() to void
Diffstat (limited to 'src/core/main.c')
-rw-r--r--src/core/main.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 706f1ca41c..25f58eb88c 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -2371,10 +2371,12 @@ static int initialize_runtime(
(void) import_credentials();
(void) os_release_status();
- (void) hostname_setup(true);
+ (void) hostname_setup(/* really = */ true);
+ (void) machine_id_setup(/* root = */ NULL, arg_machine_id,
+ (first_boot ? MACHINE_ID_SETUP_FORCE_TRANSIENT : 0) |
+ (arg_machine_id_from_firmware ? MACHINE_ID_SETUP_FORCE_FIRMWARE : 0),
+ /* ret_machine_id = */ NULL);
- machine_id_setup(/* root= */ NULL, arg_machine_id, (first_boot ? MACHINE_ID_SETUP_FORCE_TRANSIENT : 0) |
- (arg_machine_id_from_firmware ? MACHINE_ID_SETUP_FORCE_FIRMWARE : 0), /* ret_machine_id = */ NULL);
(void) loopback_setup();
bump_unix_max_dgram_qlen();
bump_file_max_and_nr_open();