diff options
Diffstat (limited to 'lib/dns/rdata/generic/x25_19.c')
-rw-r--r-- | lib/dns/rdata/generic/x25_19.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/dns/rdata/generic/x25_19.c b/lib/dns/rdata/generic/x25_19.c index c5fe2d18b08cf..81543f63fa977 100644 --- a/lib/dns/rdata/generic/x25_19.c +++ b/lib/dns/rdata/generic/x25_19.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2004, 2005, 2007, 2009, 2014 Internet Systems Consortium, Inc. ("ISC") + * Copyright (C) 2004, 2005, 2007, 2009, 2014, 2015 Internet Systems Consortium, Inc. ("ISC") * Copyright (C) 1999-2002 Internet Software Consortium. * * Permission to use, copy, modify, and/or distribute this software for any @@ -31,7 +31,7 @@ fromtext_x25(ARGS_FROMTEXT) { isc_token_t token; unsigned int i; - REQUIRE(type == 19); + REQUIRE(type == dns_rdatatype_x25); UNUSED(type); UNUSED(rdclass); @@ -56,7 +56,7 @@ totext_x25(ARGS_TOTEXT) { UNUSED(tctx); - REQUIRE(rdata->type == 19); + REQUIRE(rdata->type == dns_rdatatype_x25); REQUIRE(rdata->length != 0); dns_rdata_toregion(rdata, ®ion); @@ -67,7 +67,7 @@ static inline isc_result_t fromwire_x25(ARGS_FROMWIRE) { isc_region_t sr; - REQUIRE(type == 19); + REQUIRE(type == dns_rdatatype_x25); UNUSED(type); UNUSED(dctx); @@ -84,7 +84,7 @@ static inline isc_result_t towire_x25(ARGS_TOWIRE) { UNUSED(cctx); - REQUIRE(rdata->type == 19); + REQUIRE(rdata->type == dns_rdatatype_x25); REQUIRE(rdata->length != 0); return (mem_tobuffer(target, rdata->data, rdata->length)); @@ -97,7 +97,7 @@ compare_x25(ARGS_COMPARE) { REQUIRE(rdata1->type == rdata2->type); REQUIRE(rdata1->rdclass == rdata2->rdclass); - REQUIRE(rdata1->type == 19); + REQUIRE(rdata1->type == dns_rdatatype_x25); REQUIRE(rdata1->length != 0); REQUIRE(rdata2->length != 0); @@ -111,7 +111,7 @@ fromstruct_x25(ARGS_FROMSTRUCT) { dns_rdata_x25_t *x25 = source; isc_uint8_t i; - REQUIRE(type == 19); + REQUIRE(type == dns_rdatatype_x25); REQUIRE(source != NULL); REQUIRE(x25->common.rdtype == type); REQUIRE(x25->common.rdclass == rdclass); @@ -136,7 +136,7 @@ tostruct_x25(ARGS_TOSTRUCT) { dns_rdata_x25_t *x25 = target; isc_region_t r; - REQUIRE(rdata->type == 19); + REQUIRE(rdata->type == dns_rdatatype_x25); REQUIRE(target != NULL); REQUIRE(rdata->length != 0); @@ -159,7 +159,7 @@ static inline void freestruct_x25(ARGS_FREESTRUCT) { dns_rdata_x25_t *x25 = source; REQUIRE(source != NULL); - REQUIRE(x25->common.rdtype == 19); + REQUIRE(x25->common.rdtype == dns_rdatatype_x25); if (x25->mctx == NULL) return; @@ -171,7 +171,7 @@ freestruct_x25(ARGS_FREESTRUCT) { static inline isc_result_t additionaldata_x25(ARGS_ADDLDATA) { - REQUIRE(rdata->type == 19); + REQUIRE(rdata->type == dns_rdatatype_x25); UNUSED(rdata); UNUSED(add); @@ -184,7 +184,7 @@ static inline isc_result_t digest_x25(ARGS_DIGEST) { isc_region_t r; - REQUIRE(rdata->type == 19); + REQUIRE(rdata->type == dns_rdatatype_x25); dns_rdata_toregion(rdata, &r); @@ -194,7 +194,7 @@ digest_x25(ARGS_DIGEST) { static inline isc_boolean_t checkowner_x25(ARGS_CHECKOWNER) { - REQUIRE(type == 19); + REQUIRE(type == dns_rdatatype_x25); UNUSED(name); UNUSED(type); @@ -207,7 +207,7 @@ checkowner_x25(ARGS_CHECKOWNER) { static inline isc_boolean_t checknames_x25(ARGS_CHECKNAMES) { - REQUIRE(rdata->type == 19); + REQUIRE(rdata->type == dns_rdatatype_x25); UNUSED(rdata); UNUSED(owner); |