From 99170a5919c00f9695b19777b760ccf34ec977c6 Mon Sep 17 00:00:00 2001 From: Giacomo Tesio Date: Fri, 27 Dec 2019 00:21:51 +0100 Subject: [PATCH] jehanne: fix call to jehanne_tm2sec --- newlib/libc/sys/jehanne/libposix_conf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/newlib/libc/sys/jehanne/libposix_conf.c b/newlib/libc/sys/jehanne/libposix_conf.c index 54f674ea4..48f238b9c 100644 --- a/newlib/libc/sys/jehanne/libposix_conf.c +++ b/newlib/libc/sys/jehanne/libposix_conf.c @@ -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 #include @@ -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;