summaryrefslogtreecommitdiff
path: root/libc/unistd/execlp.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/execlp.c
parent56139d5a7109db33a7f3e951595a45a0f7f12cd4 (diff)
Use __environ instead of the GNU extension environ.
-Erik
Diffstat (limited to 'libc/unistd/execlp.c')
-rw-r--r--libc/unistd/execlp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libc/unistd/execlp.c b/libc/unistd/execlp.c
index 50fb4a032..fef10d376 100644
--- a/libc/unistd/execlp.c
+++ b/libc/unistd/execlp.c
@@ -3,7 +3,6 @@
#include <unistd.h>
#include <stdarg.h>
-extern char **environ;
extern int execvep(const char *path, char *__const argv[], char *__const envp[]);
int execlp(__const char *file, __const char *arg, ...)
@@ -43,7 +42,7 @@ int execlp(__const char *file, __const char *arg, ...)
va_end(args);
- i = execvep(file, (char *const *) argv, environ);
+ i = execvep(file, (char *const *) argv, __environ);
if (argv != shortargv)
free(argv);