summaryrefslogtreecommitdiff
path: root/src/libstddjb/sysclock_get.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/sysclock_get.c')
-rw-r--r--src/libstddjb/sysclock_get.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstddjb/sysclock_get.c b/src/libstddjb/sysclock_get.c
index 6c5041d..1325903 100644
--- a/src/libstddjb/sysclock_get.c
+++ b/src/libstddjb/sysclock_get.c
@@ -7,9 +7,9 @@
#include <time.h>
-int sysclock_get (tain_t *a)
+int sysclock_get (tain *a)
{
- tain_t aa ;
+ tain aa ;
struct timespec now ;
if (clock_gettime(CLOCK_REALTIME, &now) < 0) return 0 ;
if (!tain_from_timespec(&aa, &now)) return 0 ;
@@ -21,9 +21,9 @@ int sysclock_get (tain_t *a)
#include <sys/time.h>
-int sysclock_get (tain_t *a)
+int sysclock_get (tain *a)
{
- tain_t aa ;
+ tain aa ;
struct timeval now ;
if (gettimeofday(&now, 0) < 0) return 0 ;
if (!tain_from_timeval(&aa, &now)) return 0 ;