We use (void) in most cases for reboot() already, let's add it to the
others as well.
}
log_info("Rebooting.");
- reboot(RB_AUTOBOOT);
+ (void) reboot(RB_AUTOBOOT);
break;
case EMERGENCY_ACTION_POWEROFF:
sync();
log_info("Powering off.");
- reboot(RB_POWER_OFF);
+ (void) reboot(RB_POWER_OFF);
break;
default:
assert_not_reached("Unknown magic");
}
- reboot(cmd);
+ (void) reboot(cmd);
if (errno == EPERM && in_container) {
/* If we are in a container, and we lacked
* CAP_SYS_BOOT just exit, this will kill our