diff options
author | Kay Sievers <kay@vrfy.org> | 2014-07-29 12:23:31 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2014-07-29 13:20:20 +0200 |
commit | 3a43da2832dc5360a638d043f469a6dcbe025582 (patch) | |
tree | e3b60e840bb087c1af7f458676e3ab6bf04ea49e /src/core/timer.c | |
parent | cf347234ae78630dd4aad8907f027965e7fb9040 (diff) |
time-util: add and use USEC/NSEC_INFINIY
Diffstat (limited to 'src/core/timer.c')
-rw-r--r-- | src/core/timer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/timer.c b/src/core/timer.c index e69dfbd1e4..a5a33a6e6f 100644 --- a/src/core/timer.c +++ b/src/core/timer.c @@ -46,8 +46,8 @@ static void timer_init(Unit *u) { assert(u); assert(u->load_state == UNIT_STUB); - t->next_elapse_monotonic_or_boottime = (usec_t) -1; - t->next_elapse_realtime = (usec_t) -1; + t->next_elapse_monotonic_or_boottime = USEC_INFINITY; + t->next_elapse_realtime = USEC_INFINITY; t->accuracy_usec = u->manager->default_timer_accuracy_usec; } |