Skip to content

Commit

Permalink
core/main: cast ignored retval of machine_id_setup() to void
Browse files Browse the repository at this point in the history
  • Loading branch information
YHNdnzj committed Jul 13, 2024
1 parent efa7a5c commit 0c7a2a5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/core/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 0c7a2a5

Please sign in to comment.