2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +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

@@ -2286,7 +2286,7 @@ mark_secure(ns_client_t *client, dns_db_t *db, dns_name_t *name,
return;
}
isc_stdtime_get(&now);
now = isc_stdtime_now();
dns_rdataset_trimttl(rdataset, sigrdataset, rrsig, now,
client->view->acceptexpired);
@@ -2583,7 +2583,7 @@ stale_refresh_aftermath(ns_client_t *client, isc_result_t result) {
* database, starting the stale-refresh-time window for it.
* This is a condensed form of query_lookup().
*/
isc_stdtime_get(&client->now);
client->now = isc_stdtime_now();
client->query.attributes &= ~NS_QUERYATTR_RECURSIONOK;
qctx_init(client, NULL, 0, &qctx);
@@ -6280,7 +6280,7 @@ fetch_callback(void *arg) {
/*
* Update client->now.
*/
isc_stdtime_get(&client->now);
client->now = isc_stdtime_now();
} else {
/*
* This is a fetch completion event for a canceled fetch.
@@ -6412,9 +6412,7 @@ recparam_update(ns_query_recparam_t *param, dns_rdatatype_t qtype,
static void
recursionquota_log(ns_client_t *client, atomic_uint_fast32_t *last_log_time,
const char *format, isc_quota_t *quota) {
isc_stdtime_t now;
isc_stdtime_get(&now);
isc_stdtime_t now = isc_stdtime_now();
if (now == atomic_load_relaxed(last_log_time)) {
return;
}
@@ -6757,7 +6755,7 @@ query_hookresume(void *arg) {
INSIST(rev->ctx == client->query.hookactx);
client->query.hookactx = NULL;
canceled = false;
isc_stdtime_get(&client->now);
client->now = isc_stdtime_now();
} else {
canceled = true;
}