diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-09-14 18:16:54 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-09-14 21:42:22 +0200 |
commit | 2a03b9ed21fdbbaef52d9405b46f4967165bef78 (patch) | |
tree | d0a11dd7051b41cd0f02b21522543e87c65ffacb /src/initctl | |
parent | ad0b610b0c1c2595c32b6235e7ac5ad7fba6e0aa (diff) | |
download | systemd-2a03b9ed21fdbbaef52d9405b46f4967165bef78.tar.gz |
tree-wide: don't needlessly negate error number passed to bus_error_message()
Like it's customary in our codebase bus_error_message() internally takes
abs() of the passed error anyway, hence no need to explicitly negate it.
We mostly got this right, but in too many cases we didn't. Fix that.
Diffstat (limited to 'src/initctl')
-rw-r--r-- | src/initctl/initctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/initctl/initctl.c b/src/initctl/initctl.c index 7eee197665..050424e66c 100644 --- a/src/initctl/initctl.c +++ b/src/initctl/initctl.c @@ -115,7 +115,7 @@ static int change_runlevel(Server *s, int runlevel) { NULL, "ss", target, mode); if (r < 0) - return log_error_errno(r, "Failed to change runlevel: %s", bus_error_message(&error, -r)); + return log_error_errno(r, "Failed to change runlevel: %s", bus_error_message(&error, r)); return 0; } |