diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-03-24 02:49:09 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-03-24 02:58:41 +0100 |
commit | 6a0f1f6d5af7c7300d3db7a0ba2b068f8abd222b (patch) | |
tree | 37083cf4a7292fc4657372d034475e026693f969 /src/timedate | |
parent | f66eeb6bb636f8061bf45e6e8e24761e87510800 (diff) |
sd-event: rework API to support CLOCK_REALTIME_ALARM and CLOCK_BOOTTIME_ALARM, too
Diffstat (limited to 'src/timedate')
-rw-r--r-- | src/timedate/timedate-sntp.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/timedate/timedate-sntp.c b/src/timedate/timedate-sntp.c index cb0bf794f1..880b467a8e 100644 --- a/src/timedate/timedate-sntp.c +++ b/src/timedate/timedate-sntp.c @@ -265,7 +265,12 @@ static int sntp_arm_timer(SNTPContext *sntp, usec_t next) { } e = sd_event_source_get_event(sntp->event_receive); - r = sd_event_add_monotonic(e, &sntp->event_timer, now(CLOCK_MONOTONIC) + next, 0, sntp_timer, sntp); + r = sd_event_add_time( + e, + &sntp->event_timer, + CLOCK_MONOTONIC, + now(CLOCK_MONOTONIC) + next, 0, + sntp_timer, sntp); if (r < 0) return r; |