2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

Apply the semantic patch to remove isc_stdtime_get()

This is a simple replacement using the semantic patch from the previous
commit and as added bonus, one removal of previously undetected unused
variable in named/server.c.
This commit is contained in:
Ondřej Surý
2023-03-30 21:13:41 +02:00
parent 0ec8d7b6f3
commit 46f06c1d6e
39 changed files with 97 additions and 163 deletions

View File

@@ -1342,7 +1342,7 @@ dns_rrl_init(dns_rrl_t **rrlp, dns_view_t *view, int min_entries) {
rrl = isc_mem_getx(view->mctx, sizeof(*rrl), ISC_MEM_ZERO);
isc_mem_attach(view->mctx, &rrl->mctx);
isc_mutex_init(&rrl->lock);
isc_stdtime_get(&rrl->ts_bases[0]);
rrl->ts_bases[0] = isc_stdtime_now();
view->rrl = rrl;