jehanne: fix call to jehanne_tm2sec

This commit is contained in:
Giacomo Tesio 2019-12-27 00:21:51 +01:00
parent 7064f720bd
commit 99170a5919
1 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ struct Dir {
extern void jehanne_sysfatal(const char*, ...);
extern int jehanne_strcmp(const char*, const char*);
extern char* jehanne_strstr(const char*, const char*);
extern int32_t jehanne_tm2sec(Tm*);
extern int jehanne_tm2sec(Tm*);
#include <posix.h>
#include <errno.h>
@ -248,7 +248,7 @@ default_timeval_reader(void *tv, const Tm *time)
{
struct timeval *t = tv;
t->tv_sec = jehanne_tm2sec(time);
t->tv_sec = jehanne_tm2sec((Tm*)time);
t->tv_usec = 0;
return 0;