diff --git a/bin/delv/delv.c b/bin/delv/delv.c index 0cb8142f5a..e7e5afbae5 100644 --- a/bin/delv/delv.c +++ b/bin/delv/delv.c @@ -697,8 +697,6 @@ key_fromconfig(const cfg_obj_t *key, dns_client_t *client, dns_view_t *toview) { dnskey.common.rdtype = dns_rdatatype_dnskey; dnskey.mctx = NULL; - ISC_LINK_INIT(&dnskey.common, link); - dnskey.flags = (uint16_t)rdata1; dnskey.protocol = (uint8_t)rdata2; dnskey.algorithm = (uint8_t)rdata3; @@ -728,8 +726,6 @@ key_fromconfig(const cfg_obj_t *key, dns_client_t *client, dns_view_t *toview) { ds.common.rdtype = dns_rdatatype_ds; ds.mctx = NULL; - ISC_LINK_INIT(&ds.common, link); - ds.key_tag = (uint16_t)rdata1; ds.algorithm = (uint8_t)rdata2; ds.digest_type = (uint8_t)rdata3; diff --git a/bin/dnssec/dnssec-signzone.c b/bin/dnssec/dnssec-signzone.c index 4ceb483bde..bb33856936 100644 --- a/bin/dnssec/dnssec-signzone.c +++ b/bin/dnssec/dnssec-signzone.c @@ -1903,7 +1903,6 @@ addnsec3param(const unsigned char *salt, size_t salt_len, nsec3param.common.rdclass = gclass; nsec3param.common.rdtype = dns_rdatatype_nsec3param; - ISC_LINK_INIT(&nsec3param.common, link); nsec3param.mctx = NULL; nsec3param.flags = 0; nsec3param.hash = unknownalg ? DNS_NSEC3_UNKNOWNALG : dns_hash_sha1; diff --git a/bin/named/server.c b/bin/named/server.c index 62a904230b..c0c1b4a194 100644 --- a/bin/named/server.c +++ b/bin/named/server.c @@ -752,8 +752,6 @@ ta_fromconfig(const cfg_obj_t *key, bool *initialp, const char **namestrp, *ds = (dns_rdata_ds_t){ .common.rdclass = dns_rdataclass_in, .common.rdtype = dns_rdatatype_ds }; - ISC_LINK_INIT(&ds->common, link); - switch (anchortype) { case INIT_DNSKEY: case STATIC_DNSKEY: @@ -770,8 +768,6 @@ ta_fromconfig(const cfg_obj_t *key, bool *initialp, const char **namestrp, */ keystruct.mctx = NULL; - ISC_LINK_INIT(&keystruct.common, link); - if (rdata1 > 0xffff) { CHECKM(ISC_R_RANGE, "key flags"); } diff --git a/lib/dns/dnssec.c b/lib/dns/dnssec.c index 3c6673eb56..12b096a88f 100644 --- a/lib/dns/dnssec.c +++ b/lib/dns/dnssec.c @@ -211,7 +211,6 @@ dns_dnssec_sign(const dns_name_t *name, dns_rdataset_t *set, dst_key_t *key, sig.mctx = mctx; sig.common.rdclass = set->rdclass; sig.common.rdtype = dns_rdatatype_rrsig; - ISC_LINK_INIT(&sig.common, link); /* * Downcase signer. @@ -759,7 +758,6 @@ dns_dnssec_signmessage(dns_message_t *msg, dst_key_t *key) { sig.mctx = mctx; sig.common.rdclass = dns_rdataclass_any; sig.common.rdtype = dns_rdatatype_sig; /* SIG(0) */ - ISC_LINK_INIT(&sig.common, link); sig.covered = 0; sig.algorithm = dst_algorithm_tosecalg(dst_key_alg(key)); diff --git a/lib/dns/rdata/any_255/tsig_250.c b/lib/dns/rdata/any_255/tsig_250.c index ef776e5562..a8628d2b3d 100644 --- a/lib/dns/rdata/any_255/tsig_250.c +++ b/lib/dns/rdata/any_255/tsig_250.c @@ -453,7 +453,6 @@ tostruct_any_tsig(ARGS_TOSTRUCT) { tsig = (dns_rdata_any_tsig_t *)target; tsig->common.rdclass = rdata->rdclass; tsig->common.rdtype = rdata->type; - ISC_LINK_INIT(&tsig->common, link); dns_rdata_toregion(rdata, &sr); diff --git a/lib/dns/rdata/ch_3/a_1.c b/lib/dns/rdata/ch_3/a_1.c index 95a02fe957..7449226763 100644 --- a/lib/dns/rdata/ch_3/a_1.c +++ b/lib/dns/rdata/ch_3/a_1.c @@ -228,7 +228,6 @@ tostruct_ch_a(ARGS_TOSTRUCT) { a->common.rdclass = rdata->rdclass; a->common.rdtype = rdata->type; - ISC_LINK_INIT(&a->common, link); dns_rdata_toregion(rdata, ®ion); diff --git a/lib/dns/rdata/generic/afsdb_18.c b/lib/dns/rdata/generic/afsdb_18.c index 0721610807..5e0a7ef9d7 100644 --- a/lib/dns/rdata/generic/afsdb_18.c +++ b/lib/dns/rdata/generic/afsdb_18.c @@ -209,7 +209,6 @@ tostruct_afsdb(ARGS_TOSTRUCT) { afsdb->common.rdclass = rdata->rdclass; afsdb->common.rdtype = rdata->type; - ISC_LINK_INIT(&afsdb->common, link); dns_name_init(&afsdb->server); diff --git a/lib/dns/rdata/generic/amtrelay_260.c b/lib/dns/rdata/generic/amtrelay_260.c index 00c66c7bf6..7b8e93bc67 100644 --- a/lib/dns/rdata/generic/amtrelay_260.c +++ b/lib/dns/rdata/generic/amtrelay_260.c @@ -313,7 +313,6 @@ tostruct_amtrelay(ARGS_TOSTRUCT) { amtrelay->common.rdclass = rdata->rdclass; amtrelay->common.rdtype = rdata->type; - ISC_LINK_INIT(&amtrelay->common, link); dns_name_init(&amtrelay->gateway); amtrelay->data = NULL; diff --git a/lib/dns/rdata/generic/avc_258.c b/lib/dns/rdata/generic/avc_258.c index c32c008144..37dcdadce9 100644 --- a/lib/dns/rdata/generic/avc_258.c +++ b/lib/dns/rdata/generic/avc_258.c @@ -77,7 +77,6 @@ tostruct_avc(ARGS_TOSTRUCT) { avc->common.rdclass = rdata->rdclass; avc->common.rdtype = rdata->type; - ISC_LINK_INIT(&avc->common, link); return generic_tostruct_txt(CALL_TOSTRUCT); } diff --git a/lib/dns/rdata/generic/caa_257.c b/lib/dns/rdata/generic/caa_257.c index 9a543c5530..2dbe8ab91c 100644 --- a/lib/dns/rdata/generic/caa_257.c +++ b/lib/dns/rdata/generic/caa_257.c @@ -500,7 +500,6 @@ tostruct_caa(ARGS_TOSTRUCT) { caa->common.rdclass = rdata->rdclass; caa->common.rdtype = rdata->type; - ISC_LINK_INIT(&caa->common, link); dns_rdata_toregion(rdata, &sr); diff --git a/lib/dns/rdata/generic/cdnskey_60.c b/lib/dns/rdata/generic/cdnskey_60.c index 6a6e79dfd0..53b889770b 100644 --- a/lib/dns/rdata/generic/cdnskey_60.c +++ b/lib/dns/rdata/generic/cdnskey_60.c @@ -90,7 +90,6 @@ tostruct_cdnskey(ARGS_TOSTRUCT) { dnskey->common.rdclass = rdata->rdclass; dnskey->common.rdtype = rdata->type; - ISC_LINK_INIT(&dnskey->common, link); return generic_tostruct_key(CALL_TOSTRUCT); } diff --git a/lib/dns/rdata/generic/cds_59.c b/lib/dns/rdata/generic/cds_59.c index b4abb7adc1..359ba812d4 100644 --- a/lib/dns/rdata/generic/cds_59.c +++ b/lib/dns/rdata/generic/cds_59.c @@ -91,7 +91,6 @@ tostruct_cds(ARGS_TOSTRUCT) { */ cds->common.rdclass = rdata->rdclass; cds->common.rdtype = rdata->type; - ISC_LINK_INIT(&cds->common, link); return generic_tostruct_ds(CALL_TOSTRUCT); } diff --git a/lib/dns/rdata/generic/cert_37.c b/lib/dns/rdata/generic/cert_37.c index 89bf6b2a68..d1a9568f6b 100644 --- a/lib/dns/rdata/generic/cert_37.c +++ b/lib/dns/rdata/generic/cert_37.c @@ -193,7 +193,6 @@ tostruct_cert(ARGS_TOSTRUCT) { cert->common.rdclass = rdata->rdclass; cert->common.rdtype = rdata->type; - ISC_LINK_INIT(&cert->common, link); dns_rdata_toregion(rdata, ®ion); diff --git a/lib/dns/rdata/generic/cname_5.c b/lib/dns/rdata/generic/cname_5.c index dbf333effb..fce7c57d38 100644 --- a/lib/dns/rdata/generic/cname_5.c +++ b/lib/dns/rdata/generic/cname_5.c @@ -146,7 +146,6 @@ tostruct_cname(ARGS_TOSTRUCT) { cname->common.rdclass = rdata->rdclass; cname->common.rdtype = rdata->type; - ISC_LINK_INIT(&cname->common, link); dns_name_init(&name); dns_rdata_toregion(rdata, ®ion); diff --git a/lib/dns/rdata/generic/csync_62.c b/lib/dns/rdata/generic/csync_62.c index 0b23a57fce..4b31a9ae8d 100644 --- a/lib/dns/rdata/generic/csync_62.c +++ b/lib/dns/rdata/generic/csync_62.c @@ -170,7 +170,6 @@ tostruct_csync(ARGS_TOSTRUCT) { csync->common.rdclass = rdata->rdclass; csync->common.rdtype = rdata->type; - ISC_LINK_INIT(&csync->common, link); dns_rdata_toregion(rdata, ®ion); diff --git a/lib/dns/rdata/generic/dlv_32769.c b/lib/dns/rdata/generic/dlv_32769.c index b932e8af65..376a850049 100644 --- a/lib/dns/rdata/generic/dlv_32769.c +++ b/lib/dns/rdata/generic/dlv_32769.c @@ -87,7 +87,6 @@ tostruct_dlv(ARGS_TOSTRUCT) { dlv->common.rdclass = rdata->rdclass; dlv->common.rdtype = rdata->type; - ISC_LINK_INIT(&dlv->common, link); return generic_tostruct_ds(CALL_TOSTRUCT); } diff --git a/lib/dns/rdata/generic/dname_39.c b/lib/dns/rdata/generic/dname_39.c index 6e1d6e14d2..7df00d8ed0 100644 --- a/lib/dns/rdata/generic/dname_39.c +++ b/lib/dns/rdata/generic/dname_39.c @@ -146,7 +146,6 @@ tostruct_dname(ARGS_TOSTRUCT) { dname->common.rdclass = rdata->rdclass; dname->common.rdtype = rdata->type; - ISC_LINK_INIT(&dname->common, link); dns_name_init(&name); dns_rdata_toregion(rdata, ®ion); diff --git a/lib/dns/rdata/generic/dnskey_48.c b/lib/dns/rdata/generic/dnskey_48.c index aff39df4a6..676df38746 100644 --- a/lib/dns/rdata/generic/dnskey_48.c +++ b/lib/dns/rdata/generic/dnskey_48.c @@ -91,7 +91,6 @@ tostruct_dnskey(ARGS_TOSTRUCT) { dnskey->common.rdclass = rdata->rdclass; dnskey->common.rdtype = rdata->type; - ISC_LINK_INIT(&dnskey->common, link); return generic_tostruct_key(CALL_TOSTRUCT); } diff --git a/lib/dns/rdata/generic/doa_259.c b/lib/dns/rdata/generic/doa_259.c index 6bfbc10d8e..d0da2a4492 100644 --- a/lib/dns/rdata/generic/doa_259.c +++ b/lib/dns/rdata/generic/doa_259.c @@ -216,7 +216,6 @@ tostruct_doa(ARGS_TOSTRUCT) { doa->common.rdclass = rdata->rdclass; doa->common.rdtype = rdata->type; - ISC_LINK_INIT(&doa->common, link); dns_rdata_toregion(rdata, ®ion); diff --git a/lib/dns/rdata/generic/ds_43.c b/lib/dns/rdata/generic/ds_43.c index ebbb0b55b1..e7373bb0ca 100644 --- a/lib/dns/rdata/generic/ds_43.c +++ b/lib/dns/rdata/generic/ds_43.c @@ -279,7 +279,6 @@ generic_tostruct_ds(ARGS_TOSTRUCT) { REQUIRE(rdata->length != 0); REQUIRE(ds->common.rdtype == rdata->type); REQUIRE(ds->common.rdclass == rdata->rdclass); - REQUIRE(!ISC_LINK_LINKED(&ds->common, link)); dns_rdata_toregion(rdata, ®ion); @@ -305,7 +304,6 @@ tostruct_ds(ARGS_TOSTRUCT) { ds->common.rdclass = rdata->rdclass; ds->common.rdtype = rdata->type; - ISC_LINK_INIT(&ds->common, link); return generic_tostruct_ds(CALL_TOSTRUCT); } diff --git a/lib/dns/rdata/generic/eui48_108.c b/lib/dns/rdata/generic/eui48_108.c index 944316a73c..b3b5ebe2b7 100644 --- a/lib/dns/rdata/generic/eui48_108.c +++ b/lib/dns/rdata/generic/eui48_108.c @@ -138,7 +138,6 @@ tostruct_eui48(ARGS_TOSTRUCT) { eui48->common.rdclass = rdata->rdclass; eui48->common.rdtype = rdata->type; - ISC_LINK_INIT(&eui48->common, link); memmove(eui48->eui48, rdata->data, rdata->length); return ISC_R_SUCCESS; diff --git a/lib/dns/rdata/generic/eui64_109.c b/lib/dns/rdata/generic/eui64_109.c index 1df86ce085..8ea9a3d7a0 100644 --- a/lib/dns/rdata/generic/eui64_109.c +++ b/lib/dns/rdata/generic/eui64_109.c @@ -141,7 +141,6 @@ tostruct_eui64(ARGS_TOSTRUCT) { eui64->common.rdclass = rdata->rdclass; eui64->common.rdtype = rdata->type; - ISC_LINK_INIT(&eui64->common, link); memmove(eui64->eui64, rdata->data, rdata->length); return ISC_R_SUCCESS; diff --git a/lib/dns/rdata/generic/gpos_27.c b/lib/dns/rdata/generic/gpos_27.c index 181293c345..cb51e8e49e 100644 --- a/lib/dns/rdata/generic/gpos_27.c +++ b/lib/dns/rdata/generic/gpos_27.c @@ -134,7 +134,6 @@ tostruct_gpos(ARGS_TOSTRUCT) { gpos->common.rdclass = rdata->rdclass; gpos->common.rdtype = rdata->type; - ISC_LINK_INIT(&gpos->common, link); dns_rdata_toregion(rdata, ®ion); gpos->long_len = uint8_fromregion(®ion); diff --git a/lib/dns/rdata/generic/hinfo_13.c b/lib/dns/rdata/generic/hinfo_13.c index 3c7d12fb63..867c5d05b5 100644 --- a/lib/dns/rdata/generic/hinfo_13.c +++ b/lib/dns/rdata/generic/hinfo_13.c @@ -118,7 +118,6 @@ tostruct_hinfo(ARGS_TOSTRUCT) { hinfo->common.rdclass = rdata->rdclass; hinfo->common.rdtype = rdata->type; - ISC_LINK_INIT(&hinfo->common, link); dns_rdata_toregion(rdata, ®ion); hinfo->cpu_len = uint8_fromregion(®ion); diff --git a/lib/dns/rdata/generic/hip_55.c b/lib/dns/rdata/generic/hip_55.c index b084a899eb..39642c30a7 100644 --- a/lib/dns/rdata/generic/hip_55.c +++ b/lib/dns/rdata/generic/hip_55.c @@ -305,7 +305,6 @@ tostruct_hip(ARGS_TOSTRUCT) { hip->common.rdclass = rdata->rdclass; hip->common.rdtype = rdata->type; - ISC_LINK_INIT(&hip->common, link); dns_rdata_toregion(rdata, ®ion); diff --git a/lib/dns/rdata/generic/ipseckey_45.c b/lib/dns/rdata/generic/ipseckey_45.c index 4c4996c4bb..c46f776d4e 100644 --- a/lib/dns/rdata/generic/ipseckey_45.c +++ b/lib/dns/rdata/generic/ipseckey_45.c @@ -352,7 +352,6 @@ tostruct_ipseckey(ARGS_TOSTRUCT) { ipseckey->common.rdclass = rdata->rdclass; ipseckey->common.rdtype = rdata->type; - ISC_LINK_INIT(&ipseckey->common, link); dns_name_init(&name); dns_rdata_toregion(rdata, ®ion); diff --git a/lib/dns/rdata/generic/isdn_20.c b/lib/dns/rdata/generic/isdn_20.c index 67069a0473..8ed1187818 100644 --- a/lib/dns/rdata/generic/isdn_20.c +++ b/lib/dns/rdata/generic/isdn_20.c @@ -139,7 +139,6 @@ tostruct_isdn(ARGS_TOSTRUCT) { isdn->common.rdclass = rdata->rdclass; isdn->common.rdtype = rdata->type; - ISC_LINK_INIT(&isdn->common, link); dns_rdata_toregion(rdata, &r); diff --git a/lib/dns/rdata/generic/key_25.c b/lib/dns/rdata/generic/key_25.c index 70a14269c8..e07e9ba279 100644 --- a/lib/dns/rdata/generic/key_25.c +++ b/lib/dns/rdata/generic/key_25.c @@ -361,7 +361,6 @@ generic_tostruct_key(ARGS_TOSTRUCT) { REQUIRE(key != NULL); REQUIRE(key->common.rdclass == rdata->rdclass); REQUIRE(key->common.rdtype == rdata->type); - REQUIRE(!ISC_LINK_LINKED(&key->common, link)); dns_rdata_toregion(rdata, &sr); @@ -417,7 +416,6 @@ tostruct_key(ARGS_TOSTRUCT) { key->common.rdclass = rdata->rdclass; key->common.rdtype = rdata->type; - ISC_LINK_INIT(&key->common, link); return generic_tostruct_key(CALL_TOSTRUCT); } diff --git a/lib/dns/rdata/generic/keydata_65533.c b/lib/dns/rdata/generic/keydata_65533.c index 4a34ee4daa..894d4129dd 100644 --- a/lib/dns/rdata/generic/keydata_65533.c +++ b/lib/dns/rdata/generic/keydata_65533.c @@ -332,7 +332,6 @@ tostruct_keydata(ARGS_TOSTRUCT) { keydata->common.rdclass = rdata->rdclass; keydata->common.rdtype = rdata->type; - ISC_LINK_INIT(&keydata->common, link); dns_rdata_toregion(rdata, &sr); diff --git a/lib/dns/rdata/generic/l32_105.c b/lib/dns/rdata/generic/l32_105.c index a9358eab70..3b9aeaa912 100644 --- a/lib/dns/rdata/generic/l32_105.c +++ b/lib/dns/rdata/generic/l32_105.c @@ -154,7 +154,6 @@ tostruct_l32(ARGS_TOSTRUCT) { l32->common.rdclass = rdata->rdclass; l32->common.rdtype = rdata->type; - ISC_LINK_INIT(&l32->common, link); dns_rdata_toregion(rdata, ®ion); l32->pref = uint16_fromregion(®ion); diff --git a/lib/dns/rdata/generic/l64_106.c b/lib/dns/rdata/generic/l64_106.c index 946a33bf33..96ca5c3222 100644 --- a/lib/dns/rdata/generic/l64_106.c +++ b/lib/dns/rdata/generic/l64_106.c @@ -149,7 +149,6 @@ tostruct_l64(ARGS_TOSTRUCT) { l64->common.rdclass = rdata->rdclass; l64->common.rdtype = rdata->type; - ISC_LINK_INIT(&l64->common, link); dns_rdata_toregion(rdata, ®ion); l64->pref = uint16_fromregion(®ion); diff --git a/lib/dns/rdata/generic/loc_29.c b/lib/dns/rdata/generic/loc_29.c index ec4238624f..516347536b 100644 --- a/lib/dns/rdata/generic/loc_29.c +++ b/lib/dns/rdata/generic/loc_29.c @@ -754,7 +754,6 @@ tostruct_loc(ARGS_TOSTRUCT) { loc->common.rdclass = rdata->rdclass; loc->common.rdtype = rdata->type; - ISC_LINK_INIT(&loc->common, link); loc->v.v0.version = version; isc_region_consume(&r, 1); diff --git a/lib/dns/rdata/generic/lp_107.c b/lib/dns/rdata/generic/lp_107.c index 00aa6abc90..9eb0f78279 100644 --- a/lib/dns/rdata/generic/lp_107.c +++ b/lib/dns/rdata/generic/lp_107.c @@ -157,7 +157,6 @@ tostruct_lp(ARGS_TOSTRUCT) { lp->common.rdclass = rdata->rdclass; lp->common.rdtype = rdata->type; - ISC_LINK_INIT(&lp->common, link); dns_name_init(&name); dns_rdata_toregion(rdata, ®ion); diff --git a/lib/dns/rdata/generic/mb_7.c b/lib/dns/rdata/generic/mb_7.c index 555d92a514..78120665d4 100644 --- a/lib/dns/rdata/generic/mb_7.c +++ b/lib/dns/rdata/generic/mb_7.c @@ -145,7 +145,6 @@ tostruct_mb(ARGS_TOSTRUCT) { mb->common.rdclass = rdata->rdclass; mb->common.rdtype = rdata->type; - ISC_LINK_INIT(&mb->common, link); dns_name_init(&name); dns_rdata_toregion(rdata, ®ion); diff --git a/lib/dns/rdata/generic/md_3.c b/lib/dns/rdata/generic/md_3.c index 217fd3b0bf..26ace0eade 100644 --- a/lib/dns/rdata/generic/md_3.c +++ b/lib/dns/rdata/generic/md_3.c @@ -145,7 +145,6 @@ tostruct_md(ARGS_TOSTRUCT) { md->common.rdclass = rdata->rdclass; md->common.rdtype = rdata->type; - ISC_LINK_INIT(&md->common, link); dns_name_init(&name); dns_rdata_toregion(rdata, &r); diff --git a/lib/dns/rdata/generic/mf_4.c b/lib/dns/rdata/generic/mf_4.c index 8f353bf717..af4dc0cb1f 100644 --- a/lib/dns/rdata/generic/mf_4.c +++ b/lib/dns/rdata/generic/mf_4.c @@ -145,7 +145,6 @@ tostruct_mf(ARGS_TOSTRUCT) { mf->common.rdclass = rdata->rdclass; mf->common.rdtype = rdata->type; - ISC_LINK_INIT(&mf->common, link); dns_name_init(&name); dns_rdata_toregion(rdata, &r); diff --git a/lib/dns/rdata/generic/mg_8.c b/lib/dns/rdata/generic/mg_8.c index 15dba05c01..2828ff214f 100644 --- a/lib/dns/rdata/generic/mg_8.c +++ b/lib/dns/rdata/generic/mg_8.c @@ -145,7 +145,6 @@ tostruct_mg(ARGS_TOSTRUCT) { mg->common.rdclass = rdata->rdclass; mg->common.rdtype = rdata->type; - ISC_LINK_INIT(&mg->common, link); dns_name_init(&name); dns_rdata_toregion(rdata, ®ion); diff --git a/lib/dns/rdata/generic/minfo_14.c b/lib/dns/rdata/generic/minfo_14.c index 460d37c573..e9ffcd4f0c 100644 --- a/lib/dns/rdata/generic/minfo_14.c +++ b/lib/dns/rdata/generic/minfo_14.c @@ -209,7 +209,6 @@ tostruct_minfo(ARGS_TOSTRUCT) { minfo->common.rdclass = rdata->rdclass; minfo->common.rdtype = rdata->type; - ISC_LINK_INIT(&minfo->common, link); dns_name_init(&name); dns_rdata_toregion(rdata, ®ion); diff --git a/lib/dns/rdata/generic/mr_9.c b/lib/dns/rdata/generic/mr_9.c index df023d731a..02384fc978 100644 --- a/lib/dns/rdata/generic/mr_9.c +++ b/lib/dns/rdata/generic/mr_9.c @@ -145,7 +145,6 @@ tostruct_mr(ARGS_TOSTRUCT) { mr->common.rdclass = rdata->rdclass; mr->common.rdtype = rdata->type; - ISC_LINK_INIT(&mr->common, link); dns_name_init(&name); dns_rdata_toregion(rdata, ®ion); diff --git a/lib/dns/rdata/generic/mx_15.c b/lib/dns/rdata/generic/mx_15.c index 84ffd0e4a5..c742a4aeca 100644 --- a/lib/dns/rdata/generic/mx_15.c +++ b/lib/dns/rdata/generic/mx_15.c @@ -233,7 +233,6 @@ tostruct_mx(ARGS_TOSTRUCT) { mx->common.rdclass = rdata->rdclass; mx->common.rdtype = rdata->type; - ISC_LINK_INIT(&mx->common, link); dns_name_init(&name); dns_rdata_toregion(rdata, ®ion); diff --git a/lib/dns/rdata/generic/naptr_35.c b/lib/dns/rdata/generic/naptr_35.c index 7589106c6a..44c95aee91 100644 --- a/lib/dns/rdata/generic/naptr_35.c +++ b/lib/dns/rdata/generic/naptr_35.c @@ -501,7 +501,6 @@ tostruct_naptr(ARGS_TOSTRUCT) { naptr->common.rdclass = rdata->rdclass; naptr->common.rdtype = rdata->type; - ISC_LINK_INIT(&naptr->common, link); naptr->flags = NULL; naptr->service = NULL; diff --git a/lib/dns/rdata/generic/nid_104.c b/lib/dns/rdata/generic/nid_104.c index f0e76d23af..99415feb02 100644 --- a/lib/dns/rdata/generic/nid_104.c +++ b/lib/dns/rdata/generic/nid_104.c @@ -149,7 +149,6 @@ tostruct_nid(ARGS_TOSTRUCT) { nid->common.rdclass = rdata->rdclass; nid->common.rdtype = rdata->type; - ISC_LINK_INIT(&nid->common, link); dns_rdata_toregion(rdata, ®ion); nid->pref = uint16_fromregion(®ion); diff --git a/lib/dns/rdata/generic/ninfo_56.c b/lib/dns/rdata/generic/ninfo_56.c index 8bed8637d3..e82488221f 100644 --- a/lib/dns/rdata/generic/ninfo_56.c +++ b/lib/dns/rdata/generic/ninfo_56.c @@ -77,7 +77,6 @@ tostruct_ninfo(ARGS_TOSTRUCT) { ninfo->common.rdclass = rdata->rdclass; ninfo->common.rdtype = rdata->type; - ISC_LINK_INIT(&ninfo->common, link); return generic_tostruct_txt(CALL_TOSTRUCT); } diff --git a/lib/dns/rdata/generic/ns_2.c b/lib/dns/rdata/generic/ns_2.c index 89362b6c83..5bc32b1bca 100644 --- a/lib/dns/rdata/generic/ns_2.c +++ b/lib/dns/rdata/generic/ns_2.c @@ -159,7 +159,6 @@ tostruct_ns(ARGS_TOSTRUCT) { ns->common.rdclass = rdata->rdclass; ns->common.rdtype = rdata->type; - ISC_LINK_INIT(&ns->common, link); dns_name_init(&name); dns_rdata_toregion(rdata, ®ion); diff --git a/lib/dns/rdata/generic/nsec3_50.c b/lib/dns/rdata/generic/nsec3_50.c index ffdc184783..31a461c8a3 100644 --- a/lib/dns/rdata/generic/nsec3_50.c +++ b/lib/dns/rdata/generic/nsec3_50.c @@ -294,7 +294,6 @@ tostruct_nsec3(ARGS_TOSTRUCT) { nsec3->common.rdclass = rdata->rdclass; nsec3->common.rdtype = rdata->type; - ISC_LINK_INIT(&nsec3->common, link); region.base = rdata->data; region.length = rdata->length; diff --git a/lib/dns/rdata/generic/nsec3param_51.c b/lib/dns/rdata/generic/nsec3param_51.c index 5e7615e6d9..ecf78a1b92 100644 --- a/lib/dns/rdata/generic/nsec3param_51.c +++ b/lib/dns/rdata/generic/nsec3param_51.c @@ -230,7 +230,6 @@ tostruct_nsec3param(ARGS_TOSTRUCT) { nsec3param->common.rdclass = rdata->rdclass; nsec3param->common.rdtype = rdata->type; - ISC_LINK_INIT(&nsec3param->common, link); region.base = rdata->data; region.length = rdata->length; diff --git a/lib/dns/rdata/generic/nsec_47.c b/lib/dns/rdata/generic/nsec_47.c index e8858bb6d8..b9ddeaffe2 100644 --- a/lib/dns/rdata/generic/nsec_47.c +++ b/lib/dns/rdata/generic/nsec_47.c @@ -164,7 +164,6 @@ tostruct_nsec(ARGS_TOSTRUCT) { nsec->common.rdclass = rdata->rdclass; nsec->common.rdtype = rdata->type; - ISC_LINK_INIT(&nsec->common, link); dns_name_init(&name); dns_rdata_toregion(rdata, ®ion); diff --git a/lib/dns/rdata/generic/null_10.c b/lib/dns/rdata/generic/null_10.c index bde61b682d..f063c10eb0 100644 --- a/lib/dns/rdata/generic/null_10.c +++ b/lib/dns/rdata/generic/null_10.c @@ -102,7 +102,6 @@ tostruct_null(ARGS_TOSTRUCT) { null->common.rdclass = rdata->rdclass; null->common.rdtype = rdata->type; - ISC_LINK_INIT(&null->common, link); dns_rdata_toregion(rdata, &r); null->length = r.length; diff --git a/lib/dns/rdata/generic/nxt_30.c b/lib/dns/rdata/generic/nxt_30.c index 077bd73f5a..919db91d7b 100644 --- a/lib/dns/rdata/generic/nxt_30.c +++ b/lib/dns/rdata/generic/nxt_30.c @@ -243,7 +243,6 @@ tostruct_nxt(ARGS_TOSTRUCT) { nxt->common.rdclass = rdata->rdclass; nxt->common.rdtype = rdata->type; - ISC_LINK_INIT(&nxt->common, link); dns_name_init(&name); dns_rdata_toregion(rdata, ®ion); diff --git a/lib/dns/rdata/generic/openpgpkey_61.c b/lib/dns/rdata/generic/openpgpkey_61.c index 9b51b1f4ca..2d92221ddd 100644 --- a/lib/dns/rdata/generic/openpgpkey_61.c +++ b/lib/dns/rdata/generic/openpgpkey_61.c @@ -146,7 +146,6 @@ tostruct_openpgpkey(ARGS_TOSTRUCT) { sig->common.rdclass = rdata->rdclass; sig->common.rdtype = rdata->type; - ISC_LINK_INIT(&sig->common, link); dns_rdata_toregion(rdata, &sr); diff --git a/lib/dns/rdata/generic/opt_41.c b/lib/dns/rdata/generic/opt_41.c index 514e076fde..5ba5be9e97 100644 --- a/lib/dns/rdata/generic/opt_41.c +++ b/lib/dns/rdata/generic/opt_41.c @@ -366,7 +366,6 @@ tostruct_opt(ARGS_TOSTRUCT) { opt->common.rdclass = rdata->rdclass; opt->common.rdtype = rdata->type; - ISC_LINK_INIT(&opt->common, link); dns_rdata_toregion(rdata, &r); opt->length = r.length; diff --git a/lib/dns/rdata/generic/ptr_12.c b/lib/dns/rdata/generic/ptr_12.c index e0b5ea6309..2dac4e9839 100644 --- a/lib/dns/rdata/generic/ptr_12.c +++ b/lib/dns/rdata/generic/ptr_12.c @@ -163,7 +163,6 @@ tostruct_ptr(ARGS_TOSTRUCT) { ptr->common.rdclass = rdata->rdclass; ptr->common.rdtype = rdata->type; - ISC_LINK_INIT(&ptr->common, link); dns_name_init(&name); dns_rdata_toregion(rdata, ®ion); diff --git a/lib/dns/rdata/generic/resinfo_261.c b/lib/dns/rdata/generic/resinfo_261.c index 7c18c40211..0e35f2365e 100644 --- a/lib/dns/rdata/generic/resinfo_261.c +++ b/lib/dns/rdata/generic/resinfo_261.c @@ -78,7 +78,6 @@ tostruct_resinfo(ARGS_TOSTRUCT) { resinfo->common.rdclass = rdata->rdclass; resinfo->common.rdtype = rdata->type; - ISC_LINK_INIT(&resinfo->common, link); return generic_tostruct_txt(CALL_TOSTRUCT); } diff --git a/lib/dns/rdata/generic/rkey_57.c b/lib/dns/rdata/generic/rkey_57.c index 4ed504fd2a..fb75ac5df1 100644 --- a/lib/dns/rdata/generic/rkey_57.c +++ b/lib/dns/rdata/generic/rkey_57.c @@ -87,7 +87,6 @@ tostruct_rkey(ARGS_TOSTRUCT) { rkey->common.rdclass = rdata->rdclass; rkey->common.rdtype = rdata->type; - ISC_LINK_INIT(&rkey->common, link); return generic_tostruct_key(CALL_TOSTRUCT); } diff --git a/lib/dns/rdata/generic/rp_17.c b/lib/dns/rdata/generic/rp_17.c index bc1861e988..9e783e1aec 100644 --- a/lib/dns/rdata/generic/rp_17.c +++ b/lib/dns/rdata/generic/rp_17.c @@ -212,7 +212,6 @@ tostruct_rp(ARGS_TOSTRUCT) { rp->common.rdclass = rdata->rdclass; rp->common.rdtype = rdata->type; - ISC_LINK_INIT(&rp->common, link); dns_name_init(&name); dns_rdata_toregion(rdata, ®ion); diff --git a/lib/dns/rdata/generic/rrsig_46.c b/lib/dns/rdata/generic/rrsig_46.c index 4b86f6a7c3..09afc31805 100644 --- a/lib/dns/rdata/generic/rrsig_46.c +++ b/lib/dns/rdata/generic/rrsig_46.c @@ -499,7 +499,6 @@ tostruct_rrsig(ARGS_TOSTRUCT) { sig->common.rdclass = rdata->rdclass; sig->common.rdtype = rdata->type; - ISC_LINK_INIT(&sig->common, link); dns_rdata_toregion(rdata, &sr); diff --git a/lib/dns/rdata/generic/rt_21.c b/lib/dns/rdata/generic/rt_21.c index 798693f92b..a225ace96c 100644 --- a/lib/dns/rdata/generic/rt_21.c +++ b/lib/dns/rdata/generic/rt_21.c @@ -208,7 +208,6 @@ tostruct_rt(ARGS_TOSTRUCT) { rt->common.rdclass = rdata->rdclass; rt->common.rdtype = rdata->type; - ISC_LINK_INIT(&rt->common, link); dns_name_init(&name); dns_rdata_toregion(rdata, ®ion); diff --git a/lib/dns/rdata/generic/sig_24.c b/lib/dns/rdata/generic/sig_24.c index 2027ca9abf..2d5d828577 100644 --- a/lib/dns/rdata/generic/sig_24.c +++ b/lib/dns/rdata/generic/sig_24.c @@ -463,7 +463,6 @@ tostruct_sig(ARGS_TOSTRUCT) { sig->common.rdclass = rdata->rdclass; sig->common.rdtype = rdata->type; - ISC_LINK_INIT(&sig->common, link); dns_rdata_toregion(rdata, &sr); diff --git a/lib/dns/rdata/generic/sink_40.c b/lib/dns/rdata/generic/sink_40.c index 1b0b5cc6e2..41fc4bef2c 100644 --- a/lib/dns/rdata/generic/sink_40.c +++ b/lib/dns/rdata/generic/sink_40.c @@ -185,7 +185,6 @@ tostruct_sink(ARGS_TOSTRUCT) { sink->common.rdclass = rdata->rdclass; sink->common.rdtype = rdata->type; - ISC_LINK_INIT(&sink->common, link); dns_rdata_toregion(rdata, &sr); diff --git a/lib/dns/rdata/generic/smimea_53.c b/lib/dns/rdata/generic/smimea_53.c index ea947770db..7d10efd872 100644 --- a/lib/dns/rdata/generic/smimea_53.c +++ b/lib/dns/rdata/generic/smimea_53.c @@ -84,7 +84,6 @@ tostruct_smimea(ARGS_TOSTRUCT) { smimea->common.rdclass = rdata->rdclass; smimea->common.rdtype = rdata->type; - ISC_LINK_INIT(&smimea->common, link); return generic_tostruct_tlsa(CALL_TOSTRUCT); } diff --git a/lib/dns/rdata/generic/soa_6.c b/lib/dns/rdata/generic/soa_6.c index 427433ee28..9c5a04eecd 100644 --- a/lib/dns/rdata/generic/soa_6.c +++ b/lib/dns/rdata/generic/soa_6.c @@ -314,7 +314,6 @@ tostruct_soa(ARGS_TOSTRUCT) { soa->common.rdclass = rdata->rdclass; soa->common.rdtype = rdata->type; - ISC_LINK_INIT(&soa->common, link); dns_rdata_toregion(rdata, ®ion); diff --git a/lib/dns/rdata/generic/spf_99.c b/lib/dns/rdata/generic/spf_99.c index 9347a74624..ff598583df 100644 --- a/lib/dns/rdata/generic/spf_99.c +++ b/lib/dns/rdata/generic/spf_99.c @@ -78,7 +78,6 @@ tostruct_spf(ARGS_TOSTRUCT) { spf->common.rdclass = rdata->rdclass; spf->common.rdtype = rdata->type; - ISC_LINK_INIT(&spf->common, link); return generic_tostruct_txt(CALL_TOSTRUCT); } diff --git a/lib/dns/rdata/generic/sshfp_44.c b/lib/dns/rdata/generic/sshfp_44.c index 8e523a5a50..78fc02181f 100644 --- a/lib/dns/rdata/generic/sshfp_44.c +++ b/lib/dns/rdata/generic/sshfp_44.c @@ -206,7 +206,6 @@ tostruct_sshfp(ARGS_TOSTRUCT) { sshfp->common.rdclass = rdata->rdclass; sshfp->common.rdtype = rdata->type; - ISC_LINK_INIT(&sshfp->common, link); dns_rdata_toregion(rdata, ®ion); diff --git a/lib/dns/rdata/generic/ta_32768.c b/lib/dns/rdata/generic/ta_32768.c index 186190263a..e816bfc29a 100644 --- a/lib/dns/rdata/generic/ta_32768.c +++ b/lib/dns/rdata/generic/ta_32768.c @@ -87,7 +87,6 @@ tostruct_ta(ARGS_TOSTRUCT) { */ ds->common.rdclass = rdata->rdclass; ds->common.rdtype = rdata->type; - ISC_LINK_INIT(&ds->common, link); return generic_tostruct_ds(CALL_TOSTRUCT); } diff --git a/lib/dns/rdata/generic/talink_58.c b/lib/dns/rdata/generic/talink_58.c index fef1195b32..943448d4f6 100644 --- a/lib/dns/rdata/generic/talink_58.c +++ b/lib/dns/rdata/generic/talink_58.c @@ -168,7 +168,6 @@ tostruct_talink(ARGS_TOSTRUCT) { talink->common.rdclass = rdata->rdclass; talink->common.rdtype = rdata->type; - ISC_LINK_INIT(&talink->common, link); dns_rdata_toregion(rdata, ®ion); diff --git a/lib/dns/rdata/generic/tkey_249.c b/lib/dns/rdata/generic/tkey_249.c index b16757b3ad..35a371c1bd 100644 --- a/lib/dns/rdata/generic/tkey_249.c +++ b/lib/dns/rdata/generic/tkey_249.c @@ -425,7 +425,6 @@ tostruct_tkey(ARGS_TOSTRUCT) { tkey->common.rdclass = rdata->rdclass; tkey->common.rdtype = rdata->type; - ISC_LINK_INIT(&tkey->common, link); dns_rdata_toregion(rdata, &sr); diff --git a/lib/dns/rdata/generic/tlsa_52.c b/lib/dns/rdata/generic/tlsa_52.c index 690c81bb16..da978b0e97 100644 --- a/lib/dns/rdata/generic/tlsa_52.c +++ b/lib/dns/rdata/generic/tlsa_52.c @@ -217,7 +217,6 @@ generic_tostruct_tlsa(ARGS_TOSTRUCT) { REQUIRE(tlsa != NULL); REQUIRE(tlsa->common.rdclass == rdata->rdclass); REQUIRE(tlsa->common.rdtype == rdata->type); - REQUIRE(!ISC_LINK_LINKED(&tlsa->common, link)); dns_rdata_toregion(rdata, ®ion); @@ -266,7 +265,6 @@ tostruct_tlsa(ARGS_TOSTRUCT) { tlsa->common.rdclass = rdata->rdclass; tlsa->common.rdtype = rdata->type; - ISC_LINK_INIT(&tlsa->common, link); return generic_tostruct_tlsa(CALL_TOSTRUCT); } diff --git a/lib/dns/rdata/generic/txt_16.c b/lib/dns/rdata/generic/txt_16.c index f45ac4a8b4..7a75d5cf5a 100644 --- a/lib/dns/rdata/generic/txt_16.c +++ b/lib/dns/rdata/generic/txt_16.c @@ -167,7 +167,6 @@ generic_tostruct_txt(ARGS_TOSTRUCT) { REQUIRE(txt != NULL); REQUIRE(txt->common.rdclass == rdata->rdclass); REQUIRE(txt->common.rdtype == rdata->type); - REQUIRE(!ISC_LINK_LINKED(&txt->common, link)); dns_rdata_toregion(rdata, &r); txt->txt_len = r.length; @@ -209,7 +208,6 @@ tostruct_txt(ARGS_TOSTRUCT) { txt->common.rdclass = rdata->rdclass; txt->common.rdtype = rdata->type; - ISC_LINK_INIT(&txt->common, link); return generic_tostruct_txt(CALL_TOSTRUCT); } diff --git a/lib/dns/rdata/generic/uri_256.c b/lib/dns/rdata/generic/uri_256.c index f74f848336..bb197df9a8 100644 --- a/lib/dns/rdata/generic/uri_256.c +++ b/lib/dns/rdata/generic/uri_256.c @@ -212,7 +212,6 @@ tostruct_uri(ARGS_TOSTRUCT) { uri->common.rdclass = rdata->rdclass; uri->common.rdtype = rdata->type; - ISC_LINK_INIT(&uri->common, link); dns_rdata_toregion(rdata, &sr); diff --git a/lib/dns/rdata/generic/wallet_262.c b/lib/dns/rdata/generic/wallet_262.c index 106003cc13..9cd4cf8ab7 100644 --- a/lib/dns/rdata/generic/wallet_262.c +++ b/lib/dns/rdata/generic/wallet_262.c @@ -77,7 +77,6 @@ tostruct_wallet(ARGS_TOSTRUCT) { wallet->common.rdclass = rdata->rdclass; wallet->common.rdtype = rdata->type; - ISC_LINK_INIT(&wallet->common, link); return generic_tostruct_txt(CALL_TOSTRUCT); } diff --git a/lib/dns/rdata/generic/x25_19.c b/lib/dns/rdata/generic/x25_19.c index 4f96d591a8..c8f5ba445a 100644 --- a/lib/dns/rdata/generic/x25_19.c +++ b/lib/dns/rdata/generic/x25_19.c @@ -147,7 +147,6 @@ tostruct_x25(ARGS_TOSTRUCT) { x25->common.rdclass = rdata->rdclass; x25->common.rdtype = rdata->type; - ISC_LINK_INIT(&x25->common, link); dns_rdata_toregion(rdata, &r); x25->x25_len = uint8_fromregion(&r); diff --git a/lib/dns/rdata/generic/zonemd_63.c b/lib/dns/rdata/generic/zonemd_63.c index 79c869e5a2..2b8f701427 100644 --- a/lib/dns/rdata/generic/zonemd_63.c +++ b/lib/dns/rdata/generic/zonemd_63.c @@ -258,7 +258,6 @@ tostruct_zonemd(ARGS_TOSTRUCT) { zonemd->common.rdclass = rdata->rdclass; zonemd->common.rdtype = rdata->type; - ISC_LINK_INIT(&zonemd->common, link); dns_rdata_toregion(rdata, ®ion); diff --git a/lib/dns/rdata/hs_4/a_1.c b/lib/dns/rdata/hs_4/a_1.c index 706f14dd37..35034052e3 100644 --- a/lib/dns/rdata/hs_4/a_1.c +++ b/lib/dns/rdata/hs_4/a_1.c @@ -160,7 +160,6 @@ tostruct_hs_a(ARGS_TOSTRUCT) { a->common.rdclass = rdata->rdclass; a->common.rdtype = rdata->type; - ISC_LINK_INIT(&a->common, link); dns_rdata_toregion(rdata, ®ion); n = uint32_fromregion(®ion); diff --git a/lib/dns/rdata/in_1/a6_38.c b/lib/dns/rdata/in_1/a6_38.c index 822f9b225b..34e118fb4a 100644 --- a/lib/dns/rdata/in_1/a6_38.c +++ b/lib/dns/rdata/in_1/a6_38.c @@ -351,7 +351,6 @@ tostruct_in_a6(ARGS_TOSTRUCT) { a6->common.rdclass = rdata->rdclass; a6->common.rdtype = rdata->type; - ISC_LINK_INIT(&a6->common, link); dns_rdata_toregion(rdata, &r); diff --git a/lib/dns/rdata/in_1/a_1.c b/lib/dns/rdata/in_1/a_1.c index 1c456e713a..68419a1f46 100644 --- a/lib/dns/rdata/in_1/a_1.c +++ b/lib/dns/rdata/in_1/a_1.c @@ -161,7 +161,6 @@ tostruct_in_a(ARGS_TOSTRUCT) { a->common.rdclass = rdata->rdclass; a->common.rdtype = rdata->type; - ISC_LINK_INIT(&a->common, link); dns_rdata_toregion(rdata, ®ion); n = uint32_fromregion(®ion); diff --git a/lib/dns/rdata/in_1/aaaa_28.c b/lib/dns/rdata/in_1/aaaa_28.c index ab934dbcb9..72324f0010 100644 --- a/lib/dns/rdata/in_1/aaaa_28.c +++ b/lib/dns/rdata/in_1/aaaa_28.c @@ -173,7 +173,6 @@ tostruct_in_aaaa(ARGS_TOSTRUCT) { aaaa->common.rdclass = rdata->rdclass; aaaa->common.rdtype = rdata->type; - ISC_LINK_INIT(&aaaa->common, link); dns_rdata_toregion(rdata, &r); INSIST(r.length == 16); diff --git a/lib/dns/rdata/in_1/apl_42.c b/lib/dns/rdata/in_1/apl_42.c index 8bc130fe84..fc8f115c91 100644 --- a/lib/dns/rdata/in_1/apl_42.c +++ b/lib/dns/rdata/in_1/apl_42.c @@ -290,7 +290,6 @@ tostruct_in_apl(ARGS_TOSTRUCT) { apl->common.rdclass = rdata->rdclass; apl->common.rdtype = rdata->type; - ISC_LINK_INIT(&apl->common, link); dns_rdata_toregion(rdata, &r); apl->apl_len = r.length; diff --git a/lib/dns/rdata/in_1/atma_34.c b/lib/dns/rdata/in_1/atma_34.c index c2749198bd..9f0d5aca86 100644 --- a/lib/dns/rdata/in_1/atma_34.c +++ b/lib/dns/rdata/in_1/atma_34.c @@ -226,7 +226,6 @@ tostruct_in_atma(ARGS_TOSTRUCT) { atma->common.rdclass = rdata->rdclass; atma->common.rdtype = rdata->type; - ISC_LINK_INIT(&atma->common, link); dns_rdata_toregion(rdata, &r); atma->format = r.base[0]; diff --git a/lib/dns/rdata/in_1/dhcid_49.c b/lib/dns/rdata/in_1/dhcid_49.c index 8bc7624102..fc18e8bb06 100644 --- a/lib/dns/rdata/in_1/dhcid_49.c +++ b/lib/dns/rdata/in_1/dhcid_49.c @@ -146,7 +146,6 @@ tostruct_in_dhcid(ARGS_TOSTRUCT) { dhcid->common.rdclass = rdata->rdclass; dhcid->common.rdtype = rdata->type; - ISC_LINK_INIT(&dhcid->common, link); dns_rdata_toregion(rdata, ®ion); diff --git a/lib/dns/rdata/in_1/eid_31.c b/lib/dns/rdata/in_1/eid_31.c index 641a60475c..2cafb78903 100644 --- a/lib/dns/rdata/in_1/eid_31.c +++ b/lib/dns/rdata/in_1/eid_31.c @@ -135,7 +135,6 @@ tostruct_in_eid(ARGS_TOSTRUCT) { eid->common.rdclass = rdata->rdclass; eid->common.rdtype = rdata->type; - ISC_LINK_INIT(&eid->common, link); dns_rdata_toregion(rdata, &r); eid->eid_len = r.length; diff --git a/lib/dns/rdata/in_1/kx_36.c b/lib/dns/rdata/in_1/kx_36.c index 3498b72d26..0ba015abff 100644 --- a/lib/dns/rdata/in_1/kx_36.c +++ b/lib/dns/rdata/in_1/kx_36.c @@ -188,7 +188,6 @@ tostruct_in_kx(ARGS_TOSTRUCT) { kx->common.rdclass = rdata->rdclass; kx->common.rdtype = rdata->type; - ISC_LINK_INIT(&kx->common, link); dns_name_init(&name); dns_rdata_toregion(rdata, ®ion); diff --git a/lib/dns/rdata/in_1/nimloc_32.c b/lib/dns/rdata/in_1/nimloc_32.c index 1841fe8388..ad8b45fb69 100644 --- a/lib/dns/rdata/in_1/nimloc_32.c +++ b/lib/dns/rdata/in_1/nimloc_32.c @@ -135,7 +135,6 @@ tostruct_in_nimloc(ARGS_TOSTRUCT) { nimloc->common.rdclass = rdata->rdclass; nimloc->common.rdtype = rdata->type; - ISC_LINK_INIT(&nimloc->common, link); dns_rdata_toregion(rdata, &r); nimloc->nimloc_len = r.length; diff --git a/lib/dns/rdata/in_1/nsap-ptr_23.c b/lib/dns/rdata/in_1/nsap-ptr_23.c index 929d326422..a710bc982f 100644 --- a/lib/dns/rdata/in_1/nsap-ptr_23.c +++ b/lib/dns/rdata/in_1/nsap-ptr_23.c @@ -153,7 +153,6 @@ tostruct_in_nsap_ptr(ARGS_TOSTRUCT) { nsap_ptr->common.rdclass = rdata->rdclass; nsap_ptr->common.rdtype = rdata->type; - ISC_LINK_INIT(&nsap_ptr->common, link); dns_name_init(&name); dns_rdata_toregion(rdata, ®ion); diff --git a/lib/dns/rdata/in_1/nsap_22.c b/lib/dns/rdata/in_1/nsap_22.c index 208ae94c6c..5b88479d4c 100644 --- a/lib/dns/rdata/in_1/nsap_22.c +++ b/lib/dns/rdata/in_1/nsap_22.c @@ -170,7 +170,6 @@ tostruct_in_nsap(ARGS_TOSTRUCT) { nsap->common.rdclass = rdata->rdclass; nsap->common.rdtype = rdata->type; - ISC_LINK_INIT(&nsap->common, link); dns_rdata_toregion(rdata, &r); nsap->nsap_len = r.length; diff --git a/lib/dns/rdata/in_1/px_26.c b/lib/dns/rdata/in_1/px_26.c index 89603478ed..68b2b9c49f 100644 --- a/lib/dns/rdata/in_1/px_26.c +++ b/lib/dns/rdata/in_1/px_26.c @@ -256,7 +256,6 @@ tostruct_in_px(ARGS_TOSTRUCT) { px->common.rdclass = rdata->rdclass; px->common.rdtype = rdata->type; - ISC_LINK_INIT(&px->common, link); dns_name_init(&name); dns_rdata_toregion(rdata, ®ion); diff --git a/lib/dns/rdata/in_1/srv_33.c b/lib/dns/rdata/in_1/srv_33.c index 5c0cb1ed72..b436245ddb 100644 --- a/lib/dns/rdata/in_1/srv_33.c +++ b/lib/dns/rdata/in_1/srv_33.c @@ -272,7 +272,6 @@ tostruct_in_srv(ARGS_TOSTRUCT) { srv->common.rdclass = rdata->rdclass; srv->common.rdtype = rdata->type; - ISC_LINK_INIT(&srv->common, link); dns_name_init(&name); dns_rdata_toregion(rdata, ®ion); diff --git a/lib/dns/rdata/in_1/svcb_64.c b/lib/dns/rdata/in_1/svcb_64.c index 0f458c9c04..4965d7333a 100644 --- a/lib/dns/rdata/in_1/svcb_64.c +++ b/lib/dns/rdata/in_1/svcb_64.c @@ -1021,7 +1021,6 @@ generic_tostruct_in_svcb(ARGS_TOSTRUCT) { svcb->common.rdclass = rdata->rdclass; svcb->common.rdtype = rdata->type; - ISC_LINK_INIT(&svcb->common, link); dns_rdata_toregion(rdata, ®ion); diff --git a/lib/dns/rdata/in_1/wks_11.c b/lib/dns/rdata/in_1/wks_11.c index 23eb3b032a..bc98ebdbbc 100644 --- a/lib/dns/rdata/in_1/wks_11.c +++ b/lib/dns/rdata/in_1/wks_11.c @@ -307,7 +307,6 @@ tostruct_in_wks(ARGS_TOSTRUCT) { wks->common.rdclass = rdata->rdclass; wks->common.rdtype = rdata->type; - ISC_LINK_INIT(&wks->common, link); dns_rdata_toregion(rdata, ®ion); n = uint32_fromregion(®ion); diff --git a/lib/dns/rdata/rdatastructpre.h b/lib/dns/rdata/rdatastructpre.h index f2019ac2df..f4511f03ef 100644 --- a/lib/dns/rdata/rdatastructpre.h +++ b/lib/dns/rdata/rdatastructpre.h @@ -21,12 +21,10 @@ typedef struct dns_rdatacommon { dns_rdataclass_t rdclass; dns_rdatatype_t rdtype; - ISC_LINK(struct dns_rdatacommon) link; } dns_rdatacommon_t; #define DNS_RDATACOMMON_INIT(_data, _rdtype, _rdclass) \ do { \ (_data)->common.rdtype = (_rdtype); \ (_data)->common.rdclass = (_rdclass); \ - ISC_LINK_INIT(&(_data)->common, link); \ } while (0) diff --git a/lib/dns/tkey.c b/lib/dns/tkey.c index 81634f2fa1..2a60538779 100644 --- a/lib/dns/tkey.c +++ b/lib/dns/tkey.c @@ -419,7 +419,6 @@ dns_tkey_processquery(dns_message_t *msg, dns_tkeyctx_t *tctx, tkeyout = (dns_rdata_tkey_t){ .common.rdclass = tkeyin.common.rdclass, .common.rdtype = tkeyin.common.rdtype, - .common.link = ISC_LINK_INITIALIZER, .mctx = msg->mctx, .algorithm = DNS_NAME_INITEMPTY, .mode = tkeyin.mode, @@ -595,7 +594,6 @@ dns_tkey_buildgssquery(dns_message_t *msg, const dns_name_t *name, tkey = (dns_rdata_tkey_t){ .common.rdclass = dns_rdataclass_any, .common.rdtype = dns_rdatatype_tkey, - .common.link = ISC_LINK_INITIALIZER, .inception = now, .expire = now + lifetime, .algorithm = DNS_NAME_INITEMPTY, @@ -684,7 +682,6 @@ dns_tkey_gssnegotiate(dns_message_t *qmsg, dns_message_t *rmsg, tkey = (dns_rdata_tkey_t){ .common.rdclass = dns_rdataclass_any, .common.rdtype = dns_rdatatype_tkey, - .common.link = ISC_LINK_INITIALIZER, .inception = qtkey.inception, .expire = qtkey.expire, .algorithm = DNS_NAME_INITEMPTY, diff --git a/lib/dns/tsig.c b/lib/dns/tsig.c index 211cba9dd8..88b9d18213 100644 --- a/lib/dns/tsig.c +++ b/lib/dns/tsig.c @@ -576,7 +576,6 @@ dns_tsig_sign(dns_message_t *msg) { .mctx = mctx, .common.rdclass = dns_rdataclass_any, .common.rdtype = dns_rdatatype_tsig, - .common.link = ISC_LINK_INITIALIZER, .timesigned = now + msg->timeadjust, .fudge = DNS_TSIG_FUDGE, .originalid = msg->id, diff --git a/lib/dns/zone.c b/lib/dns/zone.c index 03693ffa0b..1f72c68afe 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -4500,7 +4500,6 @@ create_keydata(dns_zone_t *zone, dns_db_t *db, dns_dbversion_t *ver, memset(&kd, 0, sizeof(kd)); kd.common.rdclass = zone->rdclass; kd.common.rdtype = dns_rdatatype_keydata; - ISC_LINK_INIT(&kd.common, link); isc_buffer_init(&rrdatabuf, rrdata, sizeof(rrdata)); @@ -24232,7 +24231,6 @@ dns_zone_setnsec3param(dns_zone_t *zone, uint8_t hash, uint8_t flags, } else { param.common.rdclass = zone->rdclass; param.common.rdtype = dns_rdatatype_nsec3param; - ISC_LINK_INIT(¶m.common, link); param.mctx = NULL; /* * nsec3 specific param set in diff --git a/tests/dns/keytable_test.c b/tests/dns/keytable_test.c index c125c18c65..625246b8c5 100644 --- a/tests/dns/keytable_test.c +++ b/tests/dns/keytable_test.c @@ -114,7 +114,6 @@ create_keystruct(uint16_t flags, uint8_t proto, uint8_t alg, const char *keystr, keystruct->common.rdclass = rdclass; keystruct->common.rdtype = dns_rdatatype_dnskey; keystruct->mctx = mctx; - ISC_LINK_INIT(&keystruct->common, link); keystruct->flags = flags; keystruct->protocol = proto; keystruct->algorithm = alg; diff --git a/tests/dns/tsig_test.c b/tests/dns/tsig_test.c index b2c9bd980e..26402acdeb 100644 --- a/tests/dns/tsig_test.c +++ b/tests/dns/tsig_test.c @@ -94,7 +94,6 @@ add_tsig(dst_context_t *tsigctx, dns_tsigkey_t *key, isc_buffer_t *target, tsig.common.rdclass = dns_rdataclass_any; tsig.common.rdtype = dns_rdatatype_tsig; - ISC_LINK_INIT(&tsig.common, link); dns_name_init(&tsig.algorithm); dns_name_clone(dns_tsigkey_algorithm(key), &tsig.algorithm);