diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-12-22 16:44:47 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-12-22 16:44:47 +0000 |
commit | a8e40d0287f05f6e444035431b1cc7b340fe8d79 (patch) | |
tree | 3d34decfcdfed87f14ab6b467dfd8ca3c7add471 /src/libstddjb/pathexec_run.c | |
parent | 8cd0d07171f8b32553ef0c6936fd5737adcb4bab (diff) | |
download | skalibs-a8e40d0287f05f6e444035431b1cc7b340fe8d79.tar.xz |
Deprecate env_get
Diffstat (limited to 'src/libstddjb/pathexec_run.c')
-rw-r--r-- | src/libstddjb/pathexec_run.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstddjb/pathexec_run.c b/src/libstddjb/pathexec_run.c index ff3211d..5888ba2 100644 --- a/src/libstddjb/pathexec_run.c +++ b/src/libstddjb/pathexec_run.c @@ -1,13 +1,13 @@ /* ISC license. */ +#include <stdlib.h> #include <skalibs/config.h> -#include <skalibs/env.h> #include <skalibs/posixplz.h> #include <skalibs/djbunix.h> void pathexec_run (char const *file, char const *const *argv, char const *const *envp) { - char const *path = env_get("PATH") ; + char const *path = getenv("PATH") ; if (!path) path = SKALIBS_DEFAULTPATH ; execvep(file, argv, envp, path) ; } |