aboutsummaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-08-30 20:15:06 +0000
committerUlrich Drepper <drepper@redhat.com>1999-08-30 20:15:06 +0000
commit0742e50134bfc3db08895c020a940a62e5036cfb (patch)
tree3c431da3b01b0f738a3532ce2148b8e2ca6fc303 /stdlib
parentb78513132bde76f7b3f4e6f133c0c24f75fa2c2e (diff)
downloadglibc-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 'stdlib')
-rw-r--r--stdlib/tst-environ.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/stdlib/tst-environ.c b/stdlib/tst-environ.c
index 01083f5..4d17634 100644
--- a/stdlib/tst-environ.c
+++ b/stdlib/tst-environ.c
@@ -127,8 +127,9 @@ main (void)
}
/* More fun ahead: we are now removing the variable. This should remove
- both values. */
- putenv (VAR);
+ both values. The cast is ok: this call should never put the string
+ in the environment and it should never modify it. */
+ putenv ((char *) VAR);
/* Getting the value should now fail. */
if (getenv (VAR) != NULL)