summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-event
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-08-15 19:15:30 +0200
committerTom Gundersen <teg@jklm.no>2014-08-15 20:32:27 +0200
commit050f74f286b12945e3eb13a45dca92783fa65bb8 (patch)
tree2f498d051d5f2a51c4d4fa751e5f03fca501850e /src/libsystemd/sd-event
parente07bbb7c503dca966b307e7af21e2efbc6f45b89 (diff)
sd-event: return 'r' rather than '-errno'
Diffstat (limited to 'src/libsystemd/sd-event')
-rw-r--r--src/libsystemd/sd-event/sd-event.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd/sd-event/sd-event.c b/src/libsystemd/sd-event/sd-event.c
index 3a9d934aad..7917ab934a 100644
--- a/src/libsystemd/sd-event/sd-event.c
+++ b/src/libsystemd/sd-event/sd-event.c
@@ -779,7 +779,7 @@ _public_ int sd_event_add_io(
r = source_io_register(s, s->enabled, events);
if (r < 0) {
source_free(s);
- return -errno;
+ return r;
}
if (ret)
@@ -1060,7 +1060,7 @@ _public_ int sd_event_add_child(
r = event_update_signal_fd(e);
if (r < 0) {
source_free(s);
- return -errno;
+ return r;
}
}