1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-11 05:17:44 +03:00

sd-bus: drop redundant abs()

strerror_safe() internally applies abs().
This commit is contained in:
Yu Watanabe 2020-11-10 05:40:58 +09:00 committed by Zbigniew Jędrzejewski-Szmek
parent 72585a584d
commit 6272aef5ff

View File

@ -581,7 +581,7 @@ const char *bus_error_message(const sd_bus_error *e, int error) {
return e->message; return e->message;
} }
return strerror_safe(abs(error)); return strerror_safe(error);
} }
static bool map_ok(const sd_bus_error_map *map) { static bool map_ok(const sd_bus_error_map *map) {