diff options
| author | Paul Eggert <eggert@cs.ucla.edu> | 2016-03-22 11:01:30 -0700 |
|---|---|---|
| committer | Paul Eggert <eggert@cs.ucla.edu> | 2016-03-22 11:01:30 -0700 |
| commit | 37b9099068c10383e959ee366a52a22516846163 (patch) | |
| tree | f135528cdacc4313be84f7bf1ceade19327d5fe7 /lib/time_rz.c | |
| parent | 6bd1e2203486ace170f5de15cf7d66146fc8cc87 (diff) | |
| parent | 56df61712ac446d3dcd9c897f687cc74a04be314 (diff) | |
| download | emacs-37b9099068c10383e959ee366a52a22516846163.tar.gz | |
-
Diffstat (limited to 'lib/time_rz.c')
| -rw-r--r-- | lib/time_rz.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/time_rz.c b/lib/time_rz.c index bc801275b6d..55b764ea8b3 100644 --- a/lib/time_rz.c +++ b/lib/time_rz.c @@ -47,8 +47,6 @@ enum { DEFAULT_MXFAST = 64 * sizeof (size_t) / 4 }; used. */ enum { ABBR_SIZE_MIN = DEFAULT_MXFAST - offsetof (struct tm_zone, abbrs) }; -static char const TZ[] = "TZ"; - /* Magic cookie timezone_t value, for local time. It differs from NULL and from all other timezone_t values. Only the address matters; the pointer is never dereferenced. */ @@ -205,7 +203,7 @@ tzfree (timezone_t tz) static char * getenv_TZ (void) { - return getenv (TZ); + return getenv ("TZ"); } #endif @@ -213,7 +211,7 @@ getenv_TZ (void) static int setenv_TZ (char const *tz) { - return tz ? setenv (TZ, tz, 1) : unsetenv (TZ); + return tz ? setenv ("TZ", tz, 1) : unsetenv ("TZ"); } #endif |
