summaryrefslogtreecommitdiff
path: root/libc/unistd/execv.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-02-09 23:06:54 +0000
committerEric Andersen <andersen@codepoet.org>2001-02-09 23:06:54 +0000
commite57fc6bbb2e98f9ef3336db698dc7dd260dfc502 (patch)
treed525aa4fb8a13d6459c6339e4543c840b415e636 /libc/unistd/execv.c
parent56139d5a7109db33a7f3e951595a45a0f7f12cd4 (diff)
Use __environ instead of the GNU extension environ.
-Erik
Diffstat (limited to 'libc/unistd/execv.c')
-rw-r--r--libc/unistd/execv.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libc/unistd/execv.c b/libc/unistd/execv.c
index 6c8ba0d97..486f53745 100644
--- a/libc/unistd/execv.c
+++ b/libc/unistd/execv.c
@@ -1,9 +1,6 @@
-
#include <unistd.h>
-extern char **environ;
-
int execv(__const char *path, char *__const argv[])
{
- return execve(path, argv, environ);
+ return execve(path, argv, __environ);
}