[systemd-commits] src/timesync

David Herrmann dvdhrm at kemper.freedesktop.org
Mon Feb 16 09:47:09 PST 2015


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

New commits:
commit 625b3b71c12d10601816eb7793d557bd2a22b575
Author: Cristian Rodríguez <crrodriguez at opensuse.org>
Date:   Mon Feb 16 13:24:29 2015 -0300

    timesync: Use UINT64_C for OFFSET_1900_1970
    
    So it matches what the comment says in both 32 and 64 bit systems.

diff --git a/src/timesync/timesyncd-manager.c b/src/timesync/timesyncd-manager.c
index 223671c..73ac7ee 100644
--- a/src/timesync/timesyncd-manager.c
+++ b/src/timesync/timesyncd-manager.c
@@ -98,7 +98,7 @@
  * "NTP timestamps are represented as a 64-bit unsigned fixed-point number,
  * in seconds relative to 0h on 1 January 1900."
  */
-#define OFFSET_1900_1970        2208988800UL
+#define OFFSET_1900_1970        UINT64_C(2208988800)
 
 #define RETRY_USEC (30*USEC_PER_SEC)
 #define RATELIMIT_INTERVAL_USEC (10*USEC_PER_SEC)



More information about the systemd-commits mailing list