Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>2000-11-22 21:26:10 +0300
committerMichael Meissner <gnu@the-meissners.org>2000-11-22 21:26:10 +0300
commit73dea7905cb5fea2540256bacdfde33fe0ad1a0b (patch)
tree1dd1d4630bf2e207f204657c23319050dbf67c9c /newlib/libc/stdlib/getenv.c
parent0217c5bb3b85854cea392d7299706348dc007ae8 (diff)
Only reference environ indirectly through a pointer
Diffstat (limited to 'newlib/libc/stdlib/getenv.c')
-rw-r--r--newlib/libc/stdlib/getenv.c6
1 files changed, 2 insertions, 4 deletions
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
<<getenv>> searches the list of environment variable names and values
-(using the global pointer `<<char **environ>>') for a variable whose
+(using the global pointer ``<<char **environ>>'') for a variable whose
name matches the string at <[name]>. If a variable name matches,
<<getenv>> 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 <stddef.h>
#include <string.h>
-extern char **environ;
-
/*
* _findenv --
* Returns pointer to value associated with name, if any, else NULL.