summaryrefslogtreecommitdiff
path: root/src/libstddjb/utc_from_tai.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-03-13 22:43:45 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-03-13 22:43:45 +0000
commit33dfbbeaec4a49e110f51f5d088015f1a8fb9075 (patch)
tree7f2e2359d05b63b1b0b59b61ae3fc154050fc486 /src/libstddjb/utc_from_tai.c
parente450f6efc39e55e32264d2daded6c757af0f7527 (diff)
downloadskalibs-33dfbbeaec4a49e110f51f5d088015f1a8fb9075.tar.xz
More superflous headers cleanup and tiny fixes
Diffstat (limited to 'src/libstddjb/utc_from_tai.c')
-rw-r--r--src/libstddjb/utc_from_tai.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libstddjb/utc_from_tai.c b/src/libstddjb/utc_from_tai.c
index 1e5e094..0b46721 100644
--- a/src/libstddjb/utc_from_tai.c
+++ b/src/libstddjb/utc_from_tai.c
@@ -1,14 +1,12 @@
/* ISC license. */
#include <errno.h>
-#include <skalibs/uint64.h>
-#include <skalibs/tai.h>
#include <skalibs/djbtime.h>
#include "djbtime-internal.h"
-int utc_from_tai (uint64 *u, tai_t const *t)
+int utc_from_tai (uint64_t *u, tai_t const *t)
{
- uint64 tt = t->x - 10 ;
+ uint64_t tt = t->x - 10 ;
if (t->x < 10U) return (errno = EINVAL, 0) ;
leapsecs_sub(&tt) ;
*u = tt ;