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:
parent
37c2169c9e
commit
0f9ca6e7b8
4 changed files with 39 additions and 30 deletions
|
@ -2478,12 +2478,13 @@ int supplicant_start(struct supplicant *s)
|
|||
goto error;
|
||||
|
||||
/* add initial 200ms startup timer */
|
||||
r = sd_event_add_monotonic(s->l->m->event,
|
||||
&s->timer_source,
|
||||
shl_now(CLOCK_MONOTONIC) + 200 * 1000ULL,
|
||||
0,
|
||||
supplicant_timer_fn,
|
||||
s);
|
||||
r = sd_event_add_time(s->l->m->event,
|
||||
&s->timer_source,
|
||||
CLOCK_MONOTONIC,
|
||||
shl_now(CLOCK_MONOTONIC) + 200 * 1000ULL,
|
||||
0,
|
||||
supplicant_timer_fn,
|
||||
s);
|
||||
if (r < 0) {
|
||||
log_vERR(r);
|
||||
goto error;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue