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

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

void s6dns_engine_nextdeadline (s6dns_engine_t const *dt, tain_t *deadline)
{
  if (tain_less(&dt->deadline, deadline)) *deadline = dt->deadline ;
  if (tain_less(&dt->localdeadline, deadline)) *deadline = dt->localdeadline ;
}