From 805729e206b7586c57483aa0f4a90f7e0e2c9661 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 14 Oct 2015 22:54:08 +0000 Subject: - Remove /etc/leapsecs.dat - Publish tools to create the leap second table as a .c - Simplify functions using leap seconds - rc for 2.3.8.0 --- src/libstddjb/utc_from_tai.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstddjb/utc_from_tai.c') diff --git a/src/libstddjb/utc_from_tai.c b/src/libstddjb/utc_from_tai.c index 80d2763..1e5e094 100644 --- a/src/libstddjb/utc_from_tai.c +++ b/src/libstddjb/utc_from_tai.c @@ -10,7 +10,7 @@ int utc_from_tai (uint64 *u, tai_t const *t) { uint64 tt = t->x - 10 ; if (t->x < 10U) return (errno = EINVAL, 0) ; - if (leapsecs_sub(&tt) < 0) return 0 ; + leapsecs_sub(&tt) ; *u = tt ; return 1 ; } -- cgit v1.2.3