mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
portabled: Make use of SYNTHETIC_ERRNO()
This commit is contained in:
@@ -134,10 +134,8 @@ static int run(int argc, char *argv[]) {
|
||||
|
||||
umask(0022);
|
||||
|
||||
if (argc != 1) {
|
||||
log_error("This program takes no arguments.");
|
||||
return -EINVAL;
|
||||
}
|
||||
if (argc != 1)
|
||||
return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "This program takes no arguments.");
|
||||
|
||||
assert_se(sigprocmask_many(SIG_BLOCK, NULL, SIGCHLD, SIGTERM, SIGINT, -1) >= 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user