summaryrefslogtreecommitdiff
path: root/usr.bin/dig/lib/dns/rdata/in_1/kx_36.c
diff options
context:
space:
mode:
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.c28
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, &region);
-
- kx->preference = uint16_fromregion(&region);
- isc_region_consume(&region, 2);
-
- dns_name_fromregion(&name, &region);
- dns_name_init(&kx->exchange, NULL);
- RETERR(name_duporclone(&name, &kx->exchange));
- return (ISC_R_SUCCESS);
-}