summaryrefslogtreecommitdiff
path: root/src/timesync
diff options
context:
space:
mode:
authorRonny Chevalier <chevalier.ronny@gmail.com>2014-10-11 18:45:11 +0200
committerLennart Poettering <lennart@poettering.net>2014-10-21 00:38:30 +0200
commite4746b57387ffaf8be01c177ed4bbf02c8088341 (patch)
tree12d3f25f511a05c381005f5d08a2585071efb0bd /src/timesync
parent6dab5bb18151c80fc39bd51f03dcff40b920de3e (diff)
downloadsystemd-e4746b57387ffaf8be01c177ed4bbf02c8088341.tar.gz
util: avoid duplication of TIME_T_MAX
Diffstat (limited to 'src/timesync')
-rw-r--r--src/timesync/timesyncd-manager.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/timesync/timesyncd-manager.c b/src/timesync/timesyncd-manager.c
index 46f8bd6d81..e5b156b7dd 100644
--- a/src/timesync/timesyncd-manager.c
+++ b/src/timesync/timesyncd-manager.c
@@ -54,8 +54,7 @@
#include "mkdir.h"
#include "timesyncd-conf.h"
#include "timesyncd-manager.h"
-
-#define TIME_T_MAX (time_t)((1UL << ((sizeof(time_t) << 3) - 1)) - 1)
+#include "time-util.h"
#ifndef ADJ_SETOFFSET
#define ADJ_SETOFFSET 0x0100 /* add 'time' to current time */