chiark / gitweb /
timesync: Use UINT64_C for OFFSET_1900_1970
authorCristian Rodríguez <crrodriguez@opensuse.org>
Mon, 16 Feb 2015 16:24:29 +0000 (13:24 -0300)
committerDavid Herrmann <dh.herrmann@gmail.com>
Mon, 16 Feb 2015 17:43:47 +0000 (18:43 +0100)
So it matches what the comment says in both 32 and 64 bit systems.

src/timesync/timesyncd-manager.c

index 223671c08725049b1c8634c4cf029a661a0d8a85..73ac7eecbf919954e401638fd2d5a0ed8993c41b 100644 (file)
@@ -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)