summaryrefslogtreecommitdiff
path: root/lib/time_rz.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2016-03-15 13:20:29 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2016-03-15 13:20:55 -0700
commitba33b7c412158697f206a37ea66fab296b094e88 (patch)
tree7527b5b0dad6911cf57fbe51833195184d988e11 /lib/time_rz.c
parent38b276d162197a5ca4bd7322ff8a823c3754edb4 (diff)
downloademacs-ba33b7c412158697f206a37ea66fab296b094e88.tar.gz
Sync with gnulib
This incorporates: 2016-03-15 time_rz: port to clang -Wunused-const-variable 2016-03-15 select: port more to Intel 2016.1.150 compiler * lib/sys_select.in.h, lib/time_rz.c: Copy from gnulib.
Diffstat (limited to 'lib/time_rz.c')
-rw-r--r--lib/time_rz.c6
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