diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2015-10-14 22:54:08 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2015-10-14 22:54:08 +0000 |
commit | 805729e206b7586c57483aa0f4a90f7e0e2c9661 (patch) | |
tree | 4d4afb75b73cd11c953853faa48dc4cc7f236380 /src/libstddjb/utc_from_ltm64.c | |
parent | 2e0421fc58922697f2bb51c428599fbd44055556 (diff) | |
download | skalibs-805729e206b7586c57483aa0f4a90f7e0e2c9661.tar.xz |
- Remove /etc/leapsecs.datv2.3.8.0
- Publish tools to create the leap second table as a .c
- Simplify functions using leap seconds
- rc for 2.3.8.0
Diffstat (limited to 'src/libstddjb/utc_from_ltm64.c')
-rw-r--r-- | src/libstddjb/utc_from_ltm64.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/libstddjb/utc_from_ltm64.c b/src/libstddjb/utc_from_ltm64.c index 44aea15..788a539 100644 --- a/src/libstddjb/utc_from_ltm64.c +++ b/src/libstddjb/utc_from_ltm64.c @@ -5,19 +5,11 @@ #include <skalibs/djbtime.h> #include "djbtime-internal.h" -#ifdef SKALIBS_FLAG_CLOCKISTAI - -int utc_from_ltm64 (uint64 *u) -{ - return (leapsecs_sub(u) > 0) ; -} - -#else int utc_from_ltm64 (uint64 *u) { - (void)u ; +#ifdef SKALIBS_FLAG_CLOCKISTAI + leapsecs_sub(u) ; +#endif return 1 ; } - -#endif |