summaryrefslogtreecommitdiff
path: root/src/libs6dns/s6dns_engine_nextdeadline.c
blob: fdf76ebc6dd965512f918df0d9d66c07f639610d (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 *deadline)
{
  if (tain_less(&dt->deadline, deadline)) *deadline = dt->deadline ;
  if (tain_less(&dt->localdeadline, deadline)) *deadline = dt->localdeadline ;
}