summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdlib
diff options
context:
space:
mode:
authorCraig Howland <howland@LGSInnovations.com>2015-03-31 10:26:49 +0200
committerCorinna Vinschen <corinna@vinschen.de>2015-04-23 21:57:08 +0200
commit382fa90fe1fdd0f363088a28a5be12a4548099b4 (patch)
treee219fff8cf373366c9c909ac557b2c9fd10236c8 /newlib/libc/stdlib
parent95a4fc87264e5fdeb5452d63d3b2df217a2f19b2 (diff)
downloadcygnal-382fa90fe1fdd0f363088a28a5be12a4548099b4.tar.gz
cygnal-382fa90fe1fdd0f363088a28a5be12a4548099b4.tar.bz2
cygnal-382fa90fe1fdd0f363088a28a5be12a4548099b4.zip
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/stdlib')
-rw-r--r--newlib/libc/stdlib/setenv_r.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/newlib/libc/stdlib/setenv_r.c b/newlib/libc/stdlib/setenv_r.c
index f9ff2c1cd..c32c6aca9 100644
--- a/newlib/libc/stdlib/setenv_r.c
+++ b/newlib/libc/stdlib/setenv_r.c
@@ -79,9 +79,6 @@ _DEFUN (_setenv_r, (reent_ptr, name, value, rewrite),
{ /* old larger; copy over */
while ((*C++ = *value++) != 0);
ENV_UNLOCK;
- /* if we are changing the TZ environment variable, update timezone info */
- if (strcmp (name, "TZ") == 0)
- tzset ();
return 0;
}
}
@@ -128,10 +125,6 @@ _DEFUN (_setenv_r, (reent_ptr, name, value, rewrite),
ENV_UNLOCK;
- /* if we are setting the TZ environment variable, update timezone info */
- if (strncmp ((*p_environ)[offset], "TZ=", 3) == 0)
- tzset ();
-
return 0;
}