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:
committed by
Ondřej Surý
parent
045d8d9ed6
commit
ea2fe8eea4
@@ -104,10 +104,7 @@ dns_test_makezone(const char *name, dns_zone_t **zonep, dns_view_t *view,
|
||||
/*
|
||||
* Create the zone structure.
|
||||
*/
|
||||
result = dns_zone_create(&zone, mctx, 0);
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
return (result);
|
||||
}
|
||||
dns_zone_create(&zone, mctx, 0);
|
||||
|
||||
/*
|
||||
* Set zone type and origin.
|
||||
|
||||
Reference in New Issue
Block a user