summaryrefslogtreecommitdiff
path: root/src/libstddjb/tain_sysclock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/tain_sysclock.c')
-rw-r--r--src/libstddjb/tain_sysclock.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libstddjb/tain_sysclock.c b/src/libstddjb/tain_sysclock.c
index 7f54db6..3b98eb1 100644
--- a/src/libstddjb/tain_sysclock.c
+++ b/src/libstddjb/tain_sysclock.c
@@ -6,7 +6,5 @@ int tain_sysclock (tain_t *a)
{
tain_t aa ;
if (!sysclock_get(&aa)) return 0 ;
- if (!tai_from_sysclock(&a->sec, aa.sec.x)) return 0 ;
- a->nano = aa.nano ;
- return 1 ;
+ return tain_from_sysclock(a, &aa) ;
}