[systemd-commits] src/timesync

Kay Sievers kay at kemper.freedesktop.org
Wed Apr 30 00:38:36 PDT 2014


 src/timesync/timesyncd.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 81c36b3f28103c72e1b1c80a2af0dcc308a07bcf
Author: Kay Sievers <kay at vrfy.org>
Date:   Wed Apr 30 09:37:47 2014 +0200

    timesyncd: remove debug code

diff --git a/src/timesync/timesyncd.c b/src/timesync/timesyncd.c
index 1eecf7d..7b7ec7a 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;
 



More information about the systemd-commits mailing list