diff options
Diffstat (limited to 'lib/dns/rdata/generic/mf_4.c')
| -rw-r--r-- | lib/dns/rdata/generic/mf_4.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/dns/rdata/generic/mf_4.c b/lib/dns/rdata/generic/mf_4.c index a85809aef223..97402a9dc6db 100644 --- a/lib/dns/rdata/generic/mf_4.c +++ b/lib/dns/rdata/generic/mf_4.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2004, 2007, 2009 Internet Systems Consortium, Inc. ("ISC") + * Copyright (C) 2004, 2007, 2009, 2015 Internet Systems Consortium, Inc. ("ISC") * Copyright (C) 1998-2001 Internet Software Consortium. * * Permission to use, copy, modify, and/or distribute this software for any @@ -30,7 +30,7 @@ fromtext_mf(ARGS_FROMTEXT) { dns_name_t name; isc_buffer_t buffer; - REQUIRE(type == 4); + REQUIRE(type == dns_rdatatype_mf); UNUSED(type); UNUSED(rdclass); @@ -53,7 +53,7 @@ totext_mf(ARGS_TOTEXT) { dns_name_t prefix; isc_boolean_t sub; - REQUIRE(rdata->type == 4); + REQUIRE(rdata->type == dns_rdatatype_mf); REQUIRE(rdata->length != 0); dns_name_init(&name, NULL); @@ -71,7 +71,7 @@ static inline isc_result_t fromwire_mf(ARGS_FROMWIRE) { dns_name_t name; - REQUIRE(type == 4); + REQUIRE(type == dns_rdatatype_mf); UNUSED(type); UNUSED(rdclass); @@ -88,7 +88,7 @@ towire_mf(ARGS_TOWIRE) { dns_offsets_t offsets; isc_region_t region; - REQUIRE(rdata->type == 4); + REQUIRE(rdata->type == dns_rdatatype_mf); REQUIRE(rdata->length != 0); dns_compress_setmethods(cctx, DNS_COMPRESS_GLOBAL14); @@ -109,7 +109,7 @@ compare_mf(ARGS_COMPARE) { REQUIRE(rdata1->type == rdata2->type); REQUIRE(rdata1->rdclass == rdata2->rdclass); - REQUIRE(rdata1->type == 4); + REQUIRE(rdata1->type == dns_rdatatype_mf); REQUIRE(rdata1->length != 0); REQUIRE(rdata2->length != 0); @@ -130,7 +130,7 @@ fromstruct_mf(ARGS_FROMSTRUCT) { dns_rdata_mf_t *mf = source; isc_region_t region; - REQUIRE(type == 4); + REQUIRE(type == dns_rdatatype_mf); REQUIRE(source != NULL); REQUIRE(mf->common.rdtype == type); REQUIRE(mf->common.rdclass == rdclass); @@ -148,7 +148,7 @@ tostruct_mf(ARGS_TOSTRUCT) { isc_region_t r; dns_name_t name; - REQUIRE(rdata->type == 4); + REQUIRE(rdata->type == dns_rdatatype_mf); REQUIRE(target != NULL); REQUIRE(rdata->length != 0); @@ -170,7 +170,7 @@ freestruct_mf(ARGS_FREESTRUCT) { dns_rdata_mf_t *mf = source; REQUIRE(source != NULL); - REQUIRE(mf->common.rdtype == 4); + REQUIRE(mf->common.rdtype == dns_rdatatype_mf); if (mf->mctx == NULL) return; @@ -184,7 +184,7 @@ additionaldata_mf(ARGS_ADDLDATA) { dns_offsets_t offsets; isc_region_t region; - REQUIRE(rdata->type == 4); + REQUIRE(rdata->type == dns_rdatatype_mf); dns_name_init(&name, offsets); dns_rdata_toregion(rdata, ®ion); @@ -198,7 +198,7 @@ digest_mf(ARGS_DIGEST) { isc_region_t r; dns_name_t name; - REQUIRE(rdata->type == 4); + REQUIRE(rdata->type == dns_rdatatype_mf); dns_rdata_toregion(rdata, &r); dns_name_init(&name, NULL); @@ -210,7 +210,7 @@ digest_mf(ARGS_DIGEST) { static inline isc_boolean_t checkowner_mf(ARGS_CHECKOWNER) { - REQUIRE(type == 4); + REQUIRE(type == dns_rdatatype_mf); UNUSED(name); UNUSED(type); @@ -223,7 +223,7 @@ checkowner_mf(ARGS_CHECKOWNER) { static inline isc_boolean_t checknames_mf(ARGS_CHECKNAMES) { - REQUIRE(rdata->type == 4); + REQUIRE(rdata->type == dns_rdatatype_mf); UNUSED(rdata); UNUSED(owner); |
