]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
pid1, nspawn: voidify loopback_setup()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 4 Mar 2020 12:20:31 +0000 (21:20 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 4 Mar 2020 13:18:55 +0000 (14:18 +0100)
src/core/main.c
src/nspawn/nspawn.c

index 3baecc5f00d162c3a1d5db0cec608c4f2482c249..3c6b66e89c8e4183651be48813b3d7fd95c9226a 100644 (file)
@@ -1930,7 +1930,7 @@ static int initialize_runtime(
                         status_welcome();
                         hostname_setup();
                         machine_id_setup(NULL, arg_machine_id, NULL);
-                        loopback_setup();
+                        (void) loopback_setup();
                         bump_unix_max_dgram_qlen();
                         bump_file_max_and_nr_open();
                         test_usr();
index f2f420c26fcf602fbd5dfe993128fb0c9f551c1b..734dee1130e02e4a9ba91186fc6c47a81ed9a424 100644 (file)
@@ -3000,7 +3000,7 @@ static int inner_child(
                 return log_error_errno(errno, "setsid() failed: %m");
 
         if (arg_private_network)
-                loopback_setup();
+                (void) loopback_setup();
 
         if (arg_expose_ports) {
                 r = expose_port_send_rtnl(rtnl_socket);