summaryrefslogtreecommitdiff
path: root/usr.bin/dig/lib/dns/rdata/generic/md_3.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/dig/lib/dns/rdata/generic/md_3.c')
-rw-r--r--usr.bin/dig/lib/dns/rdata/generic/md_3.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/usr.bin/dig/lib/dns/rdata/generic/md_3.c b/usr.bin/dig/lib/dns/rdata/generic/md_3.c
index cdfd7020d2c..8812d217984 100644
--- a/usr.bin/dig/lib/dns/rdata/generic/md_3.c
+++ b/usr.bin/dig/lib/dns/rdata/generic/md_3.c
@@ -14,7 +14,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: md_3.c,v 1.7 2020/02/24 17:44:45 florian Exp $ */
+/* $Id: md_3.c,v 1.8 2020/02/24 17:45:26 florian Exp $ */
/* Reviewed: Wed Mar 15 17:48:20 PST 2000 by bwelling */
@@ -79,27 +79,6 @@ towire_md(ARGS_TOWIRE) {
-static inline isc_result_t
-tostruct_md(ARGS_TOSTRUCT) {
- dns_rdata_md_t *md = target;
- isc_region_t r;
- dns_name_t name;
-
- REQUIRE(rdata->type == dns_rdatatype_md);
- REQUIRE(target != NULL);
- REQUIRE(rdata->length != 0);
-
- md->common.rdclass = rdata->rdclass;
- md->common.rdtype = rdata->type;
- ISC_LINK_INIT(&md->common, link);
-
- dns_name_init(&name, NULL);
- dns_rdata_toregion(rdata, &r);
- dns_name_fromregion(&name, &r);
- dns_name_init(&md->md, NULL);
- RETERR(name_duporclone(&name, &md->md));
- return (ISC_R_SUCCESS);
-}