summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-11-10 05:40:58 +0900
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-11-10 09:24:34 +0100
commit6272aef5ff71feb23b7b37378ea5b7b13ed7799f (patch)
tree1569b3f90e59c47c97e3be8dd0f727c4354c21f1 /src
parent72585a584d26eec4bb9ea6c30fc101f1e4f0d7f9 (diff)
downloadsystemd-6272aef5ff71feb23b7b37378ea5b7b13ed7799f.tar.gz
sd-bus: drop redundant abs()
strerror_safe() internally applies abs().
Diffstat (limited to 'src')
-rw-r--r--src/libsystemd/sd-bus/bus-error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/bus-error.c b/src/libsystemd/sd-bus/bus-error.c
index 53a8cf343e..8da2024a50 100644
--- a/src/libsystemd/sd-bus/bus-error.c
+++ b/src/libsystemd/sd-bus/bus-error.c
@@ -581,7 +581,7 @@ const char *bus_error_message(const sd_bus_error *e, int error) {
return e->message;
}
- return strerror_safe(abs(error));
+ return strerror_safe(error);
}
static bool map_ok(const sd_bus_error_map *map) {