diff options
Diffstat (limited to 'newlib/libc/time/gmtime.c')
-rw-r--r-- | newlib/libc/time/gmtime.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/newlib/libc/time/gmtime.c b/newlib/libc/time/gmtime.c index 4d3dfff..141d203 100644 --- a/newlib/libc/time/gmtime.c +++ b/newlib/libc/time/gmtime.c @@ -61,8 +61,10 @@ struct tm * _DEFUN (gmtime, (tim_p), _CONST time_t * tim_p) { - _REENT_CHECK_TM(_REENT); - return gmtime_r (tim_p, (struct tm *)_REENT_TM(_REENT)); + struct _reent *reent = _REENT; + + _REENT_CHECK_TM(reent); + return gmtime_r (tim_p, (struct tm *)_REENT_TM(reent)); } #endif |