From 1c032ec5855551c44b88f94fc35fa87db4279f0a Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 9 Jan 2015 01:00:59 +0000 Subject: tai conversion functions overhaul. API change -> rc for 2.2.0.0 Doc updated. --- src/libstddjb/tain_from_ntp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstddjb/tain_from_ntp.c') diff --git a/src/libstddjb/tain_from_ntp.c b/src/libstddjb/tain_from_ntp.c index 6bf7697..5314a38 100644 --- a/src/libstddjb/tain_from_ntp.c +++ b/src/libstddjb/tain_from_ntp.c @@ -6,7 +6,7 @@ int tain_from_ntp (tain_t *a, uint64 u) { - tai_t secs = { u >> 32 } ; + tai_t secs = { .x = u >> 32 } ; if (secs.x <= 0x7FFFFFFFUL) secs.x |= ((uint64)1 << 32) ; secs.x += TAI_MAGIC ; secs.x -= NTP_OFFSET ; -- cgit v1.2.3