From: Lennart Poettering Date: Thu, 4 Jul 2019 14:54:39 +0000 (+0200) Subject: portabled: Make use of SYNTHETIC_ERRNO() X-Git-Tag: v243-rc1~194 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e4c5d78e5fdcfdd895e861920fc46bcfdcc4b4ea;p=thirdparty%2Fsystemd.git portabled: Make use of SYNTHETIC_ERRNO() --- diff --git a/src/portable/portabled.c b/src/portable/portabled.c index 5464360f894..c74ec429627 100644 --- a/src/portable/portabled.c +++ b/src/portable/portabled.c @@ -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);