core/main: cast ignored retval of machine_id_setup() to void

This commit is contained in:
Mike Yuan
2024-07-13 22:58:23 +02:00
parent efa7a5cfe4
commit 0c7a2a5542
+5 -3
View File
@@ -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();