1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-03-09 23:38:56 +00:00

build: adjust to new libsystemd-event API

The individual timer-sources were replaced by a unified timer-source.
Adjust to that.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
This commit is contained in:
David Herrmann 2014-05-09 09:29:39 +02:00
parent 37c2169c9e
commit 0f9ca6e7b8
4 changed files with 39 additions and 30 deletions

View file

@ -252,12 +252,13 @@ static void schedule_timeout(sd_event_source **out,
if (r < 0)
cli_vERR(r);
} else {
r = sd_event_add_monotonic(cli_event,
out,
rel_usec,
0,
timeout_fn,
data);
r = sd_event_add_time(cli_event,
out,
CLOCK_MONOTONIC,
rel_usec,
0,
timeout_fn,
data);
if (r < 0)
cli_vERR(r);
}