summaryrefslogtreecommitdiff
path: root/src/skaembutils/s6-test.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-12-25 02:45:41 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-12-25 02:45:41 +0000
commit68990372b2a0eb3cdf998933dc0d01b76a0ebe85 (patch)
tree55629e430a3c6e15e7c8ad67ef27612a1f84d4a0 /src/skaembutils/s6-test.c
parent74f8514a347f465bd169a20514cf70f8f9cfc721 (diff)
downloads6-portable-utils-68990372b2a0eb3cdf998933dc0d01b76a0ebe85.tar.xz
Remove env_get
Diffstat (limited to 'src/skaembutils/s6-test.c')
-rw-r--r--src/skaembutils/s6-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/skaembutils/s6-test.c b/src/skaembutils/s6-test.c
index 474eded..be8201b 100644
--- a/src/skaembutils/s6-test.c
+++ b/src/skaembutils/s6-test.c
@@ -3,9 +3,9 @@
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
+#include <stdlib.h>
#include <skalibs/types.h>
#include <skalibs/strerr2.h>
-#include <skalibs/env.h>
#include <skalibs/djbunix.h>
#define USAGE "s6-test expression... or [ expression... ]"
@@ -491,7 +491,7 @@ static int run (struct node const *tree, unsigned int root)
return n1 <= n2 ;
}
case T_ENV :
- return !!env_get(tree[tree[root].arg1].data) ;
+ return !!getenv(tree[tree[root].arg1].data) ;
default:
strerr_dief1x(111, "operation not implemented") ;
}