diff options
Diffstat (limited to 'usr.bin/dig/lib/dns/rdata/in_1/kx_36.c')
-rw-r--r-- | usr.bin/dig/lib/dns/rdata/in_1/kx_36.c | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/usr.bin/dig/lib/dns/rdata/in_1/kx_36.c b/usr.bin/dig/lib/dns/rdata/in_1/kx_36.c index 5c114fae466..c182e673870 100644 --- a/usr.bin/dig/lib/dns/rdata/in_1/kx_36.c +++ b/usr.bin/dig/lib/dns/rdata/in_1/kx_36.c @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: kx_36.c,v 1.7 2020/02/24 17:44:45 florian Exp $ */ +/* $Id: kx_36.c,v 1.8 2020/02/24 17:45:26 florian Exp $ */ /* Reviewed: Thu Mar 16 17:24:54 PST 2000 by explorer */ @@ -100,32 +100,6 @@ towire_in_kx(ARGS_TOWIRE) { -static inline isc_result_t -tostruct_in_kx(ARGS_TOSTRUCT) { - isc_region_t region; - dns_rdata_in_kx_t *kx = target; - dns_name_t name; - - REQUIRE(rdata->type == dns_rdatatype_kx); - REQUIRE(rdata->rdclass == dns_rdataclass_in); - REQUIRE(target != NULL); - REQUIRE(rdata->length != 0); - - kx->common.rdclass = rdata->rdclass; - kx->common.rdtype = rdata->type; - ISC_LINK_INIT(&kx->common, link); - - dns_name_init(&name, NULL); - dns_rdata_toregion(rdata, ®ion); - - kx->preference = uint16_fromregion(®ion); - isc_region_consume(®ion, 2); - - dns_name_fromregion(&name, ®ion); - dns_name_init(&kx->exchange, NULL); - RETERR(name_duporclone(&name, &kx->exchange)); - return (ISC_R_SUCCESS); -} |