mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
dns/lookup.c: Return void when ISC_R_SUCCESS is only returned value
With isc_mem_get() and dns_name_dup() no longer being able to fail, some functions can now only return ISC_R_SUCCESS. Change the return type to void for the following function(s): * build_event()
This commit is contained in:
@@ -90,7 +90,7 @@ start_fetch(dns_lookup_t *lookup) {
|
||||
return (result);
|
||||
}
|
||||
|
||||
static isc_result_t
|
||||
static void
|
||||
build_event(dns_lookup_t *lookup) {
|
||||
dns_name_t *name = NULL;
|
||||
dns_rdataset_t *rdataset = NULL;
|
||||
@@ -115,8 +115,6 @@ build_event(dns_lookup_t *lookup) {
|
||||
lookup->event->name = name;
|
||||
lookup->event->rdataset = rdataset;
|
||||
lookup->event->sigrdataset = sigrdataset;
|
||||
|
||||
return (ISC_R_SUCCESS);
|
||||
}
|
||||
|
||||
static isc_result_t
|
||||
@@ -216,7 +214,7 @@ lookup_find(dns_lookup_t *lookup, dns_fetchevent_t *event) {
|
||||
|
||||
switch (result) {
|
||||
case ISC_R_SUCCESS:
|
||||
result = build_event(lookup);
|
||||
build_event(lookup);
|
||||
if (event == NULL) {
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user