From 76503447314b80afff3e2c1b2ee98b591c4e6b6c Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 25 Dec 2017 02:41:16 +0000 Subject: Remove env_get --- src/libs6dns/s6dns_rci_init.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libs6dns/s6dns_rci_init.c b/src/libs6dns/s6dns_rci_init.c index 5257d2c..3a1c786 100644 --- a/src/libs6dns/s6dns_rci_init.c +++ b/src/libs6dns/s6dns_rci_init.c @@ -2,6 +2,7 @@ #include #include +#include #include #include #include @@ -28,7 +29,7 @@ static inline int s6dns_rci_init_servers (s6dns_rci_t *rci, char const *file, ch { ip46_t tmplist[S6DNS_MAX_SERVERS] ; size_t num = 0 ; - char const *x = env_get("DNSCACHEIP") ; + char const *x = getenv("DNSCACHEIP") ; if (x) ip46_scanlist(tmplist, S6DNS_MAX_SERVERS, x, &num) ; if (!num) { @@ -108,7 +109,7 @@ static inline int stringrules (stralloc *rules, char const *s, unsigned int *num static inline int s6dns_rci_init_rules (s6dns_rci_t_ref rci, char const *file, char *tmp, size_t max, size_t *size) { unsigned int num = 0 ; - char const *x = env_get("DNSQUALIFY") ; + char const *x = getenv("DNSQUALIFY") ; if (x) { if (!stringrules(&rci->rules, x, &num)) return 0 ; -- cgit v1.2.3