summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/timesync/timesyncd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/timesync/timesyncd.c b/src/timesync/timesyncd.c
index 1eecf7d4d6..7b7ec7ae9f 100644
--- a/src/timesync/timesyncd.c
+++ b/src/timesync/timesyncd.c
@@ -367,8 +367,7 @@ static int sntp_adjust_clock(Manager *m, double offset, int leap_sec) {
break;
}
- //r = clock_adjtime(CLOCK_REALTIME, &tmx);
- r = adjtimex(&tmx);
+ r = clock_adjtime(CLOCK_REALTIME, &tmx);
if (r < 0)
return r;