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:
@@ -2017,7 +2017,7 @@ dns_view_loadnta(dns_view_t *view) {
|
||||
dns_ntatable_t *ntatable = NULL;
|
||||
isc_lex_t *lex = NULL;
|
||||
isc_token_t token;
|
||||
isc_stdtime_t now;
|
||||
isc_stdtime_t now = isc_stdtime_now();
|
||||
|
||||
REQUIRE(DNS_VIEW_VALID(view));
|
||||
|
||||
@@ -2028,7 +2028,6 @@ dns_view_loadnta(dns_view_t *view) {
|
||||
isc_lex_create(view->mctx, 1025, &lex);
|
||||
CHECK(isc_lex_openfile(lex, view->nta_file));
|
||||
CHECK(dns_view_getntatable(view, &ntatable));
|
||||
isc_stdtime_get(&now);
|
||||
|
||||
for (;;) {
|
||||
int options = (ISC_LEXOPT_EOL | ISC_LEXOPT_EOF);
|
||||
|
Reference in New Issue
Block a user