From 0742e50134bfc3db08895c020a940a62e5036cfb Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 30 Aug 1999 20:15:06 +0000 Subject: Update. 1999-08-30 Ulrich Drepper * stdlib/tst-environ.c: Add cast to avoid warning. * timezone/test-tz.c: Use setenv instead of putenv. --- stdlib/tst-environ.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'stdlib') 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) -- cgit v1.1