summaryrefslogtreecommitdiffstats
path: root/usr.bin/dig/lib/dns/rdata/generic/rt_21.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/dig/lib/dns/rdata/generic/rt_21.c')
-rw-r--r--usr.bin/dig/lib/dns/rdata/generic/rt_21.c26
1 files changed, 1 insertions, 25 deletions
diff --git a/usr.bin/dig/lib/dns/rdata/generic/rt_21.c b/usr.bin/dig/lib/dns/rdata/generic/rt_21.c
index bb50358397b..bc7b71ad7b9 100644
--- a/usr.bin/dig/lib/dns/rdata/generic/rt_21.c
+++ b/usr.bin/dig/lib/dns/rdata/generic/rt_21.c
@@ -14,7 +14,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rt_21.c,v 1.7 2020/02/24 17:44:45 florian Exp $ */
+/* $Id: rt_21.c,v 1.8 2020/02/24 17:45:26 florian Exp $ */
/* reviewed: Thu Mar 16 15:02:31 PST 2000 by brister */
@@ -105,30 +105,6 @@ towire_rt(ARGS_TOWIRE) {
-static inline isc_result_t
-tostruct_rt(ARGS_TOSTRUCT) {
- isc_region_t region;
- dns_rdata_rt_t *rt = target;
- dns_name_t name;
-
- REQUIRE(rdata->type == dns_rdatatype_rt);
- REQUIRE(target != NULL);
- REQUIRE(rdata->length != 0);
-
- rt->common.rdclass = rdata->rdclass;
- rt->common.rdtype = rdata->type;
- ISC_LINK_INIT(&rt->common, link);
-
- dns_name_init(&name, NULL);
- dns_rdata_toregion(rdata, &region);
- rt->preference = uint16_fromregion(&region);
- isc_region_consume(&region, 2);
- dns_name_fromregion(&name, &region);
- dns_name_init(&rt->host, NULL);
- RETERR(name_duporclone(&name, &rt->host));
-
- return (ISC_R_SUCCESS);
-}