mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Make dns_catz_get_iterator() return void
Previously, the function(s) in the commit subject could fail for various reasons - mostly allocation failures, or other functions returning different return code than ISC_R_SUCCESS. Now, the aforementioned function(s) cannot ever fail and they would always return ISC_R_SUCCESS. Change the function(s) to return void and remove the extra checks in the code that uses them.
This commit is contained in:
@@ -2025,10 +2025,9 @@ dns_catz_postreconfig(dns_catz_zones_t *catzs) {
|
||||
isc_ht_iter_destroy(&iter);
|
||||
}
|
||||
|
||||
isc_result_t
|
||||
void
|
||||
dns_catz_get_iterator(dns_catz_zone_t *catz, isc_ht_iter_t **itp) {
|
||||
REQUIRE(DNS_CATZ_ZONE_VALID(catz));
|
||||
isc_ht_iter_create(catz->entries, itp);
|
||||
|
||||
return (ISC_R_SUCCESS);
|
||||
isc_ht_iter_create(catz->entries, itp);
|
||||
}
|
||||
|
Reference in New Issue
Block a user