summaryrefslogtreecommitdiff
path: root/src/libs6dns/s6dns_init.c
blob: 8e941bd608d6d8a3c4e3ec66538825338542f96c (plain)
1
2
3
4
5
6
7
8
9
10
11
/* ISC license. */

#include <skalibs/random.h>
#include <s6-dns/s6dns.h>

int s6dns_init (void)
{
  if (!random_init()) return 0 ;
  if (!s6dns_rci_init(&s6dns_rci_here, "/etc/resolv.conf")) return 0 ;
  return 1 ;
}