From 17898c52f631c3dd10c11167aaa702e5756dde04 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Sun, 5 Jul 2020 16:46:40 +0200 Subject: sfeed_atom: minor simplification, gmtime_r is not needed here --- sfeed_atom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sfeed_atom.c b/sfeed_atom.c index 0463ef7..2626b6c 100644 --- a/sfeed_atom.c +++ b/sfeed_atom.c @@ -39,7 +39,7 @@ static void printfeed(FILE *fp, const char *feedname) { char *fields[FieldLast]; - struct tm tmitem, *tm; + struct tm *tm; time_t parsedtime; ssize_t linelen; @@ -76,7 +76,7 @@ printfeed(FILE *fp, const char *feedname) parsedtime = 0; if (strtotime(fields[FieldUnixTimestamp], &parsedtime) || - !(tm = gmtime_r(&parsedtime, &tmitem))) + !(tm = gmtime(&parsedtime))) tm = &tmnow; fprintf(stdout, "\t%04d-%02d-%02dT%02d:%02d:%02dZ\n", tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, -- cgit v1.2.3