mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
sd-bus: drop redundant abs()
strerror_safe() internally applies abs().
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
72585a584d
commit
6272aef5ff
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user