summaryrefslogtreecommitdiffstats
path: root/src/libsystemd/sd-bus/test-bus-error.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-10-07 15:28:05 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-10-11 16:39:09 +0200
commita6e016af0106d4204ec4718ecfdc137355656241 (patch)
treed6d6aa9beea607b9adb9a7373ee7f26e0591a768 /src/libsystemd/sd-bus/test-bus-error.c
parentbasic: add STRERROR() wrapper for strerror_r() (diff)
downloadsystemd-a6e016af0106d4204ec4718ecfdc137355656241.tar.xz
systemd-a6e016af0106d4204ec4718ecfdc137355656241.zip
tree-wide: use STRERROR()
Diffstat (limited to 'src/libsystemd/sd-bus/test-bus-error.c')
-rw-r--r--src/libsystemd/sd-bus/test-bus-error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/test-bus-error.c b/src/libsystemd/sd-bus/test-bus-error.c
index cc59de12b4..a55f3f9856 100644
--- a/src/libsystemd/sd-bus/test-bus-error.c
+++ b/src/libsystemd/sd-bus/test-bus-error.c
@@ -99,7 +99,7 @@ TEST(error) {
assert_se(!sd_bus_error_is_set(&error));
assert_se(sd_bus_error_set_errno(&error, EBUSY) == -EBUSY);
assert_se(streq(error.name, "System.Error.EBUSY"));
- assert_se(streq(error.message, strerror_safe(EBUSY)));
+ assert_se(streq(error.message, STRERROR(EBUSY)));
assert_se(sd_bus_error_has_name(&error, "System.Error.EBUSY"));
assert_se(sd_bus_error_get_errno(&error) == EBUSY);
assert_se(sd_bus_error_is_set(&error));