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/ucspi_get.c | |
parent | 8cd0d07171f8b32553ef0c6936fd5737adcb4bab (diff) | |
download | skalibs-a8e40d0287f05f6e444035431b1cc7b340fe8d79.tar.xz |
Deprecate env_get
Diffstat (limited to 'src/libstddjb/ucspi_get.c')
-rw-r--r-- | src/libstddjb/ucspi_get.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstddjb/ucspi_get.c b/src/libstddjb/ucspi_get.c index b4572d1..71fd14b 100644 --- a/src/libstddjb/ucspi_get.c +++ b/src/libstddjb/ucspi_get.c @@ -2,11 +2,12 @@ #include <errno.h> #include <string.h> +#include <stdlib.h> #include <skalibs/env.h> char const *ucspi_get (char const *s) { - char const *x = env_get("PROTO") ; + char const *x = getenv("PROTO") ; if (x) { size_t len = strlen(s) ; @@ -14,7 +15,7 @@ char const *ucspi_get (char const *s) char tmp[len + xlen + 1] ; memcpy(tmp, x, xlen) ; memcpy(tmp + xlen, s, len + 1) ; - x = env_get(tmp) ; + x = getenv(tmp) ; if (!x) errno = ENOENT ; } else errno = EINVAL ; |