diff options
Diffstat (limited to 'src/libs6dns/s6dns_init.c')
-rw-r--r-- | src/libs6dns/s6dns_init.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libs6dns/s6dns_init.c b/src/libs6dns/s6dns_init.c new file mode 100644 index 0000000..04f94d9 --- /dev/null +++ b/src/libs6dns/s6dns_init.c @@ -0,0 +1,11 @@ +/* ISC license. */ + +#include <skalibs/random.h> +#include <s6dns/s6-dns.h> + +int s6dns_init (void) +{ + if (!random_init()) return 0 ; + if (!s6dns_rci_init(&s6dns_rci_here, "/etc/resolv.conf")) return 0 ; + return 1 ; +} |