mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-19 22:51:48 +00:00
sd-event: return 'r' rather than '-errno'
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user