diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-08-30 20:15:06 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-08-30 20:15:06 +0000 |
commit | 0742e50134bfc3db08895c020a940a62e5036cfb (patch) | |
tree | 3c431da3b01b0f738a3532ce2148b8e2ca6fc303 /timezone/test-tz.c | |
parent | b78513132bde76f7b3f4e6f133c0c24f75fa2c2e (diff) | |
download | glibc-0742e50134bfc3db08895c020a940a62e5036cfb.zip glibc-0742e50134bfc3db08895c020a940a62e5036cfb.tar.gz glibc-0742e50134bfc3db08895c020a940a62e5036cfb.tar.bz2 |
Update.
1999-08-30 Ulrich Drepper <drepper@cygnus.com>
* stdlib/tst-environ.c: Add cast to avoid warning.
* timezone/test-tz.c: Use setenv instead of putenv.
Diffstat (limited to 'timezone/test-tz.c')
-rw-r--r-- | timezone/test-tz.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/timezone/test-tz.c b/timezone/test-tz.c index 6a330a5..28e1e37 100644 --- a/timezone/test-tz.c +++ b/timezone/test-tz.c @@ -7,11 +7,11 @@ struct { const char * env; time_t expected; } tests[] = { - {"TZ=MST", 832935315}, - {"TZ=", 832910115}, - {"TZ=:UTC", 832910115}, - {"TZ=UTC", 832910115}, - {"TZ=UTC0", 832910115} + {"MST", 832935315}, + {"", 832910115}, + {":UTC", 832910115}, + {"UTC", 832910115}, + {"UTC0", 832910115} }; @@ -34,7 +34,7 @@ main (int argc, char ** argv) for (i = 0; i < sizeof (tests) / sizeof (tests[0]); ++i) { - putenv (tests[i].env); + setenv ("TZ", tests[i].env); t = mktime (&tm); if (t != tests[i].expected) { |