summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-11-11 22:54:56 +0100
committerLennart Poettering <lennart@poettering.net>2015-11-11 22:54:56 +0100
commitee735086f8670be1591fa9593e80dd60163a7a2f (patch)
tree4e91aabe48b07e37cd3712a5025ad66dfbc390fa /src/core
parentc89f52ac6938374972253d8752ed65f3af0b3ef4 (diff)
util-lib: use MODE_INVALID as invalid value for mode_t everywhere
Diffstat (limited to 'src/core')
-rw-r--r--src/core/timer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/timer.c b/src/core/timer.c
index c50e891aeb..06a6035315 100644
--- a/src/core/timer.c
+++ b/src/core/timer.c
@@ -519,7 +519,7 @@ static void timer_enter_running(Timer *t) {
dual_timestamp_get(&t->last_trigger);
if (t->stamp_path)
- touch_file(t->stamp_path, true, t->last_trigger.realtime, UID_INVALID, GID_INVALID, 0);
+ touch_file(t->stamp_path, true, t->last_trigger.realtime, UID_INVALID, GID_INVALID, MODE_INVALID);
timer_set_state(t, TIMER_RUNNING);
return;
@@ -555,7 +555,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_INFINITY, UID_INVALID, GID_INVALID, 0);
+ touch_file(t->stamp_path, true, USEC_INFINITY, UID_INVALID, GID_INVALID, MODE_INVALID);
}
t->result = TIMER_SUCCESS;