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

@ -1565,12 +1565,17 @@ int wpas_attach_event(struct wpas *w, sd_event *event, int priority)
if (r < 0)
goto error;
r = sd_event_add_monotonic(w->event,
&w->timer_source,
0,
0,
wpas_timer_fn,
w);
r = sd_event_add_time(w->event,
&w->timer_source,
CLOCK_MONOTONIC,
0,
0,
wpas_timer_fn,
w);
if (r < 0)
goto error;
r = sd_event_source_set_enabled(w->timer_source, SD_EVENT_OFF);
if (r < 0)
goto error;