chiark / gitweb /
treewide: convert some left-over (usec_t) -1 to USEC_INFINITY
[elogind.git] / src / core / timer.c
index 70aeedd3c76438725286eb7d0a830cd52d3c49f4..9155dfc81fccedad8cef9638513d60a034da4407 100644 (file)
@@ -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;