Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/time/lcltime.c')
-rw-r--r--newlib/libc/time/lcltime.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/newlib/libc/time/lcltime.c b/newlib/libc/time/lcltime.c
index 1cdc64fd0..e54a49d37 100644
--- a/newlib/libc/time/lcltime.c
+++ b/newlib/libc/time/lcltime.c
@@ -51,8 +51,7 @@ struct tm *
_DEFUN (localtime, (tim_p),
_CONST time_t * tim_p)
{
- _REENT_CHECK_TM(_REENT);
- return localtime_r (tim_p, (struct tm *)_REENT_TM(_REENT));
+ return localtime_r (tim_p, (struct tm *)&(_REENT->_new._reent._localtime_buf));
}
#endif