aboutsummaryrefslogtreecommitdiff
path: root/timezone/tst-timezone.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-08-30 19:23:15 +0000
committerUlrich Drepper <drepper@redhat.com>1999-08-30 19:23:15 +0000
commit1e275b9e9b4345b0f9e870d62f78249b4797ae15 (patch)
tree9d55bac52eeacb1ca6b41222689f3a29daa8b1d2 /timezone/tst-timezone.c
parent74bced63c5cea0a1fcbd58f7b23a5dcbf02e6018 (diff)
downloadglibc-1e275b9e9b4345b0f9e870d62f78249b4797ae15.zip
glibc-1e275b9e9b4345b0f9e870d62f78249b4797ae15.tar.gz
glibc-1e275b9e9b4345b0f9e870d62f78249b4797ae15.tar.bz2
Update.
1999-08-29 Thorsten Kukuk <kukuk@suse.de> * nis/Versions: Add _nss_*_getipnodebyname_r. * nis/nss_nis/nis-hosts.c: Add _nss_nis_getipnodebyname_r. * nis/nss_nisplus/nisplus-hosts.c: Add _nss_nisplus_getipnodebyname_r. * nss/Versions: Add _nss_files_getipnodebyname_r.
Diffstat (limited to 'timezone/tst-timezone.c')
-rw-r--r--timezone/tst-timezone.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/timezone/tst-timezone.c b/timezone/tst-timezone.c
index 5ccdb6b..edff458 100644
--- a/timezone/tst-timezone.c
+++ b/timezone/tst-timezone.c
@@ -49,6 +49,8 @@ static const struct test_times tests[] =
{ NULL, 0, 0 }
};
+/* This string will be used for `putenv' calls. */
+char envstring[100];
void
print_tzvars (void)
@@ -123,7 +125,8 @@ main (int argc, char ** argv)
{
struct tm tmBuf = {0, 0, 0, 10, 3, 98, 0, 0, -1};
char buf[200];
- putenv ("TZ=Europe/London");
+ strcpy (envstring, "TZ=Europe/London");
+ putenv (envstring);
t = mktime (&tmBuf);
snprintf (buf, sizeof (buf), "TZ=%s %ld %d %d %d %d %d %d %d %d %d",
getenv ("TZ"), t,
@@ -145,7 +148,8 @@ main (int argc, char ** argv)
{
struct tm tmBuf = {0, 0, 0, 10, 3, 98, 0, 0, -1};
char buf[200];
- putenv ("TZ=GMT");
+ strcpy (envstring, "TZ=GMT");
+ /* No putenv call needed! */
t = mktime (&tmBuf);
snprintf (buf, sizeof (buf), "TZ=%s %ld %d %d %d %d %d %d %d %d %d",
getenv ("TZ"), t,