summaryrefslogtreecommitdiff
path: root/src/core/timer.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-11-28 20:52:55 +0100
committerLennart Poettering <lennart@poettering.net>2014-11-28 20:55:04 +0100
commit46bcf49291874c5a6b5b34ad6413c5a0f7725f4c (patch)
treec627c4c8861ecdc77879b0a7743ec9ddd514933a /src/core/timer.c
parentfed1e721fd0c81e60c77120539f34e16c2585634 (diff)
treewide: convert some left-over (usec_t) -1 to USEC_INFINITY
Diffstat (limited to 'src/core/timer.c')
-rw-r--r--src/core/timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/timer.c b/src/core/timer.c
index 70aeedd3c..9155dfc81 100644
--- a/src/core/timer.c
+++ b/src/core/timer.c
@@ -543,7 +543,7 @@ static int timer_start(Unit *u) {
/* The timer has never run before,
* make sure a stamp file exists.
*/
- touch_file(t->stamp_path, true, (usec_t) -1, UID_INVALID, GID_INVALID, 0);
+ touch_file(t->stamp_path, true, USEC_INFINITY, UID_INVALID, GID_INVALID, 0);
}
t->result = TIMER_SUCCESS;