mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +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:
@@ -154,13 +154,11 @@ check_hints(dns_db_t *db) {
|
||||
dns_rdataset_t rootns;
|
||||
dns_dbiterator_t *dbiter = NULL;
|
||||
dns_dbnode_t *node = NULL;
|
||||
isc_stdtime_t now;
|
||||
isc_stdtime_t now = isc_stdtime_now();
|
||||
dns_fixedname_t fixname;
|
||||
dns_name_t *name;
|
||||
dns_rdatasetiter_t *rdsiter = NULL;
|
||||
|
||||
isc_stdtime_get(&now);
|
||||
|
||||
name = dns_fixedname_initname(&fixname);
|
||||
|
||||
dns_rdataset_init(&rootns);
|
||||
@@ -460,7 +458,7 @@ dns_root_checkhints(dns_view_t *view, dns_db_t *hints, dns_db_t *db) {
|
||||
dns_rdata_ns_t ns;
|
||||
dns_rdataset_t hintns, rootns;
|
||||
const char *viewname = "", *sep = "";
|
||||
isc_stdtime_t now;
|
||||
isc_stdtime_t now = isc_stdtime_now();
|
||||
dns_name_t *name;
|
||||
dns_fixedname_t fixed;
|
||||
|
||||
@@ -468,8 +466,6 @@ dns_root_checkhints(dns_view_t *view, dns_db_t *hints, dns_db_t *db) {
|
||||
REQUIRE(db != NULL);
|
||||
REQUIRE(view != NULL);
|
||||
|
||||
isc_stdtime_get(&now);
|
||||
|
||||
if (strcmp(view->name, "_bind") != 0 &&
|
||||
strcmp(view->name, "_default") != 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user