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/child_spawn0.c | |
parent | 8cd0d07171f8b32553ef0c6936fd5737adcb4bab (diff) | |
download | skalibs-a8e40d0287f05f6e444035431b1cc7b340fe8d79.tar.xz |
Deprecate env_get
Diffstat (limited to 'src/libstddjb/child_spawn0.c')
-rw-r--r-- | src/libstddjb/child_spawn0.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstddjb/child_spawn0.c b/src/libstddjb/child_spawn0.c index a01739a..31d44e2 100644 --- a/src/libstddjb/child_spawn0.c +++ b/src/libstddjb/child_spawn0.c @@ -9,14 +9,13 @@ #include <spawn.h> #include <stdlib.h> #include <skalibs/config.h> -#include <skalibs/env.h> pid_t child_spawn0 (char const *prog, char const *const *argv, char const *const *envp) { posix_spawnattr_t attr ; int e ; pid_t pid ; - int haspath = !!env_get("PATH") ; + int haspath = !!getenv("PATH") ; e = posix_spawnattr_init(&attr) ; if (e) goto err ; { |