From 1e275b9e9b4345b0f9e870d62f78249b4797ae15 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 30 Aug 1999 19:23:15 +0000 Subject: Update. 1999-08-29 Thorsten Kukuk * 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. --- timezone/tst-timezone.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'timezone') 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, -- cgit v1.1