diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | resolv/res_debug.c | 7 |
2 files changed, 7 insertions, 6 deletions
@@ -1,5 +1,11 @@ 2016-05-10 Florian Weimer <fweimer@redhat.com> + [BZ #20017] + * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of + gmtime. + +2016-05-10 Florian Weimer <fweimer@redhat.com> + [BZ #19994] * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6 flag in _res.options. diff --git a/resolv/res_debug.c b/resolv/res_debug.c index d1e12db579..bd95590ccc 100644 --- a/resolv/res_debug.c +++ b/resolv/res_debug.c @@ -1035,13 +1035,8 @@ p_secstodate (u_long secs) { time_t clock = secs; struct tm *time; -#ifdef HAVE_TIME_R struct tm timebuf; - - time = gmtime_r(&clock, &timebuf); -#else - time = gmtime(&clock); -#endif + time = __gmtime_r(&clock, &timebuf); time->tm_year += 1900; time->tm_mon += 1; sprintf(output, "%04d%02d%02d%02d%02d%02d", |