summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-objects.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-12-14 22:18:49 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-12-14 22:45:14 -0500
commit5958d08962a11950287bc7eaa4094a9c15c798d1 (patch)
treec17fc09a6875274cde5e50f9477f88f22c30f88e /src/libsystemd-bus/bus-objects.c
parent899839b9f87a46b49bb3f0eccb9133a8b07c1be7 (diff)
bus: return negative errno on error
https://bugs.freedesktop.org/show_bug.cgi?id=72688
Diffstat (limited to 'src/libsystemd-bus/bus-objects.c')
-rw-r--r--src/libsystemd-bus/bus-objects.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsystemd-bus/bus-objects.c b/src/libsystemd-bus/bus-objects.c
index 204e21d5d8..8c81ea6641 100644
--- a/src/libsystemd-bus/bus-objects.c
+++ b/src/libsystemd-bus/bus-objects.c
@@ -51,7 +51,7 @@ static int node_vtable_get_userdata(
if (r < 0)
return r;
if (sd_bus_error_is_set(error))
- return sd_bus_error_get_errno(error);
+ return -sd_bus_error_get_errno(error);
if (r == 0)
return r;
}
@@ -117,7 +117,7 @@ static int add_enumerated_to_set(
if (r < 0)
return r;
if (sd_bus_error_is_set(error))
- return sd_bus_error_get_errno(error);
+ return -sd_bus_error_get_errno(error);
STRV_FOREACH(k, children) {
if (r < 0) {
@@ -419,7 +419,7 @@ static int invoke_property_get(
if (r < 0)
return r;
if (sd_bus_error_is_set(error))
- return sd_bus_error_get_errno(error);
+ return -sd_bus_error_get_errno(error);
return r;
}
@@ -475,7 +475,7 @@ static int invoke_property_set(
if (r < 0)
return r;
if (sd_bus_error_is_set(error))
- return sd_bus_error_get_errno(error);
+ return -sd_bus_error_get_errno(error);
return r;
}