summaryrefslogtreecommitdiff
path: root/libc/unistd/execl.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/execl.c
parent56139d5a7109db33a7f3e951595a45a0f7f12cd4 (diff)
Use __environ instead of the GNU extension environ.
-Erik
Diffstat (limited to 'libc/unistd/execl.c')
-rw-r--r--libc/unistd/execl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libc/unistd/execl.c b/libc/unistd/execl.c
index 531c2ee60..a05867ef8 100644
--- a/libc/unistd/execl.c
+++ b/libc/unistd/execl.c
@@ -3,8 +3,6 @@
#include <unistd.h>
#include <stdarg.h>
-extern char **environ;
-
int execl(__const char *path, __const char *arg, ...)
{
const char *shortargv[16];
@@ -42,7 +40,7 @@ int execl(__const char *path, __const char *arg, ...)
va_end(args);
- i = execve(path, (char *const *) argv, environ);
+ i = execve(path, (char *const *) argv, __environ);
if (argv != shortargv)
free(argv);