mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 17:42:04 -04:00
libdns: dns_name_dup() can't fail, change return type to void
This commit is contained in:
parent
b1413ccf8d
commit
a35b19f80e
2 changed files with 2 additions and 4 deletions
|
|
@ -1031,7 +1031,7 @@ dns_name_split(const dns_name_t *name, unsigned int suffixlabels,
|
|||
*\li #ISC_R_SUCCESS No worries. (This function should always success).
|
||||
*/
|
||||
|
||||
isc_result_t
|
||||
void
|
||||
dns_name_dup(const dns_name_t *source, isc_mem_t *mctx,
|
||||
dns_name_t *target);
|
||||
/*%<
|
||||
|
|
|
|||
|
|
@ -2159,7 +2159,7 @@ dns_name_split(const dns_name_t *name, unsigned int suffixlabels,
|
|||
return;
|
||||
}
|
||||
|
||||
isc_result_t
|
||||
void
|
||||
dns_name_dup(const dns_name_t *source, isc_mem_t *mctx,
|
||||
dns_name_t *target)
|
||||
{
|
||||
|
|
@ -2193,8 +2193,6 @@ dns_name_dup(const dns_name_t *source, isc_mem_t *mctx,
|
|||
else
|
||||
set_offsets(target, target->offsets, NULL);
|
||||
}
|
||||
|
||||
return (ISC_R_SUCCESS);
|
||||
}
|
||||
|
||||
isc_result_t
|
||||
|
|
|
|||
Loading…
Reference in a new issue