2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

Refactor dns_zone_create() to return void

After isc_stats_create() change, the dns_zone_create() cannot fail, so
refactor the function to return void and fix all its uses.
This commit is contained in:
Ondřej Surý
2023-06-26 11:09:26 +02:00
committed by Ondřej Surý
parent 045d8d9ed6
commit ea2fe8eea4
8 changed files with 15 additions and 39 deletions

View File

@@ -595,7 +595,7 @@ load_zone(isc_mem_t *mctx, const char *zonename, const char *filename,
zonename, filename, classname);
}
CHECK(dns_zone_create(&zone, mctx, 0));
dns_zone_create(&zone, mctx, 0);
dns_zone_settype(zone, dns_zone_primary);