diff options
author | Thomas Bächler <thomas@archlinux.org> | 2014-02-21 11:20:24 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-02-21 14:06:50 +0100 |
commit | 9ac441c0f40a10a6c498398e5876a5256b833e31 (patch) | |
tree | 47586f734872c2d14e72bc123705a216c8c12a05 | |
parent | 9e82ffa040448a8f800411c2230ad98ef0e57d9c (diff) |
sd-event: Fix systemd crash when using timer units.
There was a copy-paste error introduced in commit c2ba3ad6604ef2e189d7e0a36d6911116e84d3ab
which causes the following error when using timer units:
Assertion '(x->type == SOURCE_MONOTONIC && y->type == SOURCE_MONOTONIC) || (x->type == SOURCE_REALTIME && y->type == SOURCE_REALTIME)'
failed at src/libsystemd/sd-event/sd-event.c:264, function latest_time_prioq_compare(). Aborting.
-rw-r--r-- | src/libsystemd/sd-event/sd-event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-event/sd-event.c b/src/libsystemd/sd-event/sd-event.c index 25dfd17d40..1f039bc37b 100644 --- a/src/libsystemd/sd-event/sd-event.c +++ b/src/libsystemd/sd-event/sd-event.c @@ -771,7 +771,7 @@ _public_ int sd_event_add_realtime(sd_event *e, sd_event_time_handler_t callback, void *userdata) { - return event_add_time_internal(e, ret, SOURCE_REALTIME, &e->realtime_fd, CLOCK_REALTIME, &e->realtime_earliest, &e->monotonic_latest, usec, accuracy, callback, userdata); + return event_add_time_internal(e, ret, SOURCE_REALTIME, &e->realtime_fd, CLOCK_REALTIME, &e->realtime_earliest, &e->realtime_latest, usec, accuracy, callback, userdata); } static int event_update_signal_fd(sd_event *e) { |