summaryrefslogtreecommitdiff
path: root/src/libstddjb/ucspi_get.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/ucspi_get.c')
-rw-r--r--src/libstddjb/ucspi_get.c5
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 ;