Commit 771714e6 authored by Andreas Gustafsson's avatar Andreas Gustafsson
Browse files

eliminated the function address_to_ptr_name

parent 39f02955
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: byaddr.c,v 1.19 2000/08/14 19:09:55 bwelling Exp $ */
/* $Id: byaddr.c,v 1.20 2000/08/16 22:21:17 gson Exp $ */
#include <config.h>
......@@ -127,21 +127,6 @@ dns_byaddr_createptrname(isc_netaddr_t *address, isc_boolean_t nibble,
ISC_FALSE, NULL));
}
static inline isc_result_t
address_to_ptr_name(dns_byaddr_t *byaddr, isc_netaddr_t *address) {
isc_boolean_t nibble;
/*
* The caller must be holding the byaddr's lock.
*/
dns_fixedname_init(&byaddr->name);
nibble = ISC_TF(byaddr->options & DNS_BYADDROPT_IPV6NIBBLE);
return (dns_byaddr_createptrname(address, nibble,
dns_fixedname_name(&byaddr->name)));
}
static inline isc_result_t
copy_ptr_targets(dns_byaddr_t *byaddr) {
isc_result_t result;
......@@ -423,7 +408,11 @@ dns_byaddr_create(isc_mem_t *mctx, isc_netaddr_t *address, dns_view_t *view,
if (result != ISC_R_SUCCESS)
goto cleanup_event;
result = address_to_ptr_name(byaddr, address);
dns_fixedname_init(&byaddr->name);
result = dns_byaddr_createptrname(address,
ISC_TF(byaddr->options & DNS_BYADDROPT_IPV6NIBBLE),
dns_fixedname_name(&byaddr->name));
if (result != ISC_R_SUCCESS)
goto cleanup_lock;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment