diff options
Diffstat (limited to 'tz/localtime.c')
-rw-r--r-- | tz/localtime.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/tz/localtime.c b/tz/localtime.c index 6623eac..d3e406b 100644 --- a/tz/localtime.c +++ b/tz/localtime.c @@ -1355,8 +1355,9 @@ zoneinit(struct state *sp, char const *name) } static void -tzsetlcl(char const *name) +tzset_unlocked(void) { + char const *name = getenv("TZ"); struct state *sp = lclptr; int lcl = name ? strlen(name) < sizeof lcl_TZname : -1; if (lcl < 0 @@ -1377,23 +1378,6 @@ tzsetlcl(char const *name) lcl_is_set = lcl; } -#ifdef STD_INSPIRED -void -tzsetwall(void) -{ - if (lock() != 0) - return; - tzsetlcl(NULL); - unlock(); -} -#endif - -static void -tzset_unlocked(void) -{ - tzsetlcl(getenv("TZ")); -} - void tzset(void) { |