diff options
author | Craig Howland <howland@LGSInnovations.com> | 2015-03-31 10:26:49 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2015-04-23 21:57:08 +0200 |
commit | 382fa90fe1fdd0f363088a28a5be12a4548099b4 (patch) | |
tree | e219fff8cf373366c9c909ac557b2c9fd10236c8 /newlib/libc/time/lcltime_r.c | |
parent | 95a4fc87264e5fdeb5452d63d3b2df217a2f19b2 (diff) | |
download | newlib-382fa90fe1fdd0f363088a28a5be12a4548099b4.zip newlib-382fa90fe1fdd0f363088a28a5be12a4548099b4.tar.gz newlib-382fa90fe1fdd0f363088a28a5be12a4548099b4.tar.bz2 |
Move tzset calls to time functions.
* libc/stdlib/setenv_r.c (_setenv_r): Remove tzset() call for TZ
definition.
* libc/time/lcltime_r.c (localtime_r): Add tzset() call
* libc/time/mktime.c (mktime): Ditto.
* libc/time/strftime.c (strftime, wcsftime): Ditto.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libc/time/lcltime_r.c')
-rw-r--r-- | newlib/libc/time/lcltime_r.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/newlib/libc/time/lcltime_r.c b/newlib/libc/time/lcltime_r.c index 9094e5d..8a69e40 100644 --- a/newlib/libc/time/lcltime_r.c +++ b/newlib/libc/time/lcltime_r.c @@ -31,6 +31,7 @@ _DEFUN (localtime_r, (tim_p, res), year = res->tm_year + YEAR_BASE; ip = __month_lengths[isleap(year)]; + tzset (); TZ_LOCK; if (_daylight) { |