From 73dea7905cb5fea2540256bacdfde33fe0ad1a0b Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Wed, 22 Nov 2000 18:26:10 +0000 Subject: Only reference environ indirectly through a pointer --- newlib/libc/stdlib/getenv.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'newlib/libc/stdlib/getenv.c') diff --git a/newlib/libc/stdlib/getenv.c b/newlib/libc/stdlib/getenv.c index c9f1ecd96..267f67aac 100644 --- a/newlib/libc/stdlib/getenv.c +++ b/newlib/libc/stdlib/getenv.c @@ -18,7 +18,7 @@ TRAD_SYNOPSIS DESCRIPTION <> searches the list of environment variable names and values -(using the global pointer `<>') for a variable whose +(using the global pointer ``<>'') for a variable whose name matches the string at <[name]>. If a variable name matches, <> returns a pointer to the associated value. @@ -39,7 +39,7 @@ variables vary from one system to another. */ /* - * Copyright (c) 1987 Regents of the University of California. + * Copyright (c) 1987, 2000 Regents of the University of California. * All rights reserved. * * Redistribution and use in source and binary forms are permitted @@ -63,8 +63,6 @@ variables vary from one system to another. #include #include -extern char **environ; - /* * _findenv -- * Returns pointer to value associated with name, if any, else NULL. -- cgit v1.2.3