From f833fd0411f0c9c626d9bf79e57c3b0b681a34e7 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Thu, 13 Jul 2017 15:11:10 -0400 Subject: [PATCH] Port: 'struct tm' member count vary across platforms MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- logging/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logging/log.c b/logging/log.c index 1a3204cc..49a3061a 100644 --- a/logging/log.c +++ b/logging/log.c @@ -742,7 +742,7 @@ static char lvl_char(const int lvl) #define TCACHE_FLUID (0x40000000 | 0x80000000) static unsigned g_tcache_mode = TCACHE_STALE; static struct timeval g_tcache_tv = {0, 0}; -static struct tm g_tcache_tm = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; +static struct tm g_tcache_tm = {0}; static INLINE int tcache_get(const struct timeval *const tv, struct tm *const tm) { -- 2.34.1