summaryrefslogtreecommitdiff
path: root/src/libstddjb/env_get.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-12-22 16:44:47 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-12-22 16:44:47 +0000
commita8e40d0287f05f6e444035431b1cc7b340fe8d79 (patch)
tree3d34decfcdfed87f14ab6b467dfd8ca3c7add471 /src/libstddjb/env_get.c
parent8cd0d07171f8b32553ef0c6936fd5737adcb4bab (diff)
downloadskalibs-a8e40d0287f05f6e444035431b1cc7b340fe8d79.tar.xz
Deprecate env_get
Diffstat (limited to 'src/libstddjb/env_get.c')
-rw-r--r--src/libstddjb/env_get.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstddjb/env_get.c b/src/libstddjb/env_get.c
index f523f45..d809461 100644
--- a/src/libstddjb/env_get.c
+++ b/src/libstddjb/env_get.c
@@ -1,9 +1,9 @@
/* ISC license. */
-#include <skalibs/env.h>
+#include <stdlib.h>
#include <skalibs/posixplz.h>
char const *env_get (char const *s)
{
- return env_get2((char const **)environ, s) ;
+ return getenv(s) ;
}