diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-12-25 02:41:16 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-12-25 02:41:16 +0000 |
commit | 76503447314b80afff3e2c1b2ee98b591c4e6b6c (patch) | |
tree | 425ac9dce780b88dac7f60188ac3ed8d00e7b8cf /src/libs6dns | |
parent | 275183baefa08dc91f094c1e59bd43a77684662d (diff) | |
download | s6-dns-76503447314b80afff3e2c1b2ee98b591c4e6b6c.tar.xz |
Remove env_get
Diffstat (limited to 'src/libs6dns')
-rw-r--r-- | src/libs6dns/s6dns_rci_init.c | 5 |
1 files 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 <string.h> #include <errno.h> +#include <stdlib.h> #include <skalibs/error.h> #include <skalibs/bytestr.h> #include <skalibs/bitarray.h> @@ -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 ; |