summaryrefslogtreecommitdiff
path: root/src/libstddjb/tain_ulong.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/tain_ulong.c')
-rw-r--r--src/libstddjb/tain_ulong.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstddjb/tain_ulong.c b/src/libstddjb/tain_ulong.c
index 2ba730a..8eb890b 100644
--- a/src/libstddjb/tain_ulong.c
+++ b/src/libstddjb/tain_ulong.c
@@ -2,8 +2,9 @@
#include <skalibs/tai.h>
-void tain_ulong (tain_t *t, unsigned long s)
+int tain_ulong (tain_t *t, unsigned long s)
{
- tai_u64(&t->sec, s) ;
+ if (!tai_u64(&t->sec, s)) return 0 ;
t->nano = 0 ;
+ return 1 ;
}