mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-02 07:35:26 +00:00
code review changes
This commit is contained in:
@@ -15,7 +15,9 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: cname_5.c,v 1.20 2000/02/03 23:42:58 halley Exp $ */
|
/* $Id: cname_5.c,v 1.21 2000/03/16 01:15:36 brister Exp $ */
|
||||||
|
|
||||||
|
/* reviewed: Wed Mar 15 16:48:45 PST 2000 by brister */
|
||||||
|
|
||||||
#ifndef RDATA_GENERIC_CNAME_5_C
|
#ifndef RDATA_GENERIC_CNAME_5_C
|
||||||
#define RDATA_GENERIC_CNAME_5_C
|
#define RDATA_GENERIC_CNAME_5_C
|
||||||
@@ -31,7 +33,7 @@ fromtext_cname(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
|
|
||||||
REQUIRE(type == 5);
|
REQUIRE(type == 5);
|
||||||
|
|
||||||
rdclass = rdclass; /*unused*/
|
UNUSED(rdclass);
|
||||||
|
|
||||||
RETERR(gettoken(lexer, &token, isc_tokentype_string, ISC_FALSE));
|
RETERR(gettoken(lexer, &token, isc_tokentype_string, ISC_FALSE));
|
||||||
|
|
||||||
@@ -73,7 +75,7 @@ fromwire_cname(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
|
|
||||||
REQUIRE(type == 5);
|
REQUIRE(type == 5);
|
||||||
|
|
||||||
rdclass = rdclass; /*unused*/
|
UNUSED(rdclass);
|
||||||
|
|
||||||
if (dns_decompress_edns(dctx) >= 1 || !dns_decompress_strict(dctx))
|
if (dns_decompress_edns(dctx) >= 1 || !dns_decompress_strict(dctx))
|
||||||
dns_decompress_setmethods(dctx, DNS_COMPRESS_ALL);
|
dns_decompress_setmethods(dctx, DNS_COMPRESS_ALL);
|
||||||
@@ -85,7 +87,8 @@ fromwire_cname(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static inline isc_result_t
|
static inline isc_result_t
|
||||||
towire_cname(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_cname(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target)
|
||||||
|
{
|
||||||
dns_name_t name;
|
dns_name_t name;
|
||||||
isc_region_t region;
|
isc_region_t region;
|
||||||
|
|
||||||
@@ -104,7 +107,8 @@ towire_cname(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static inline int
|
static inline int
|
||||||
compare_cname(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_cname(dns_rdata_t *rdata1, dns_rdata_t *rdata2)
|
||||||
|
{
|
||||||
dns_name_t name1;
|
dns_name_t name1;
|
||||||
dns_name_t name2;
|
dns_name_t name2;
|
||||||
isc_region_t region1;
|
isc_region_t region1;
|
||||||
@@ -133,28 +137,30 @@ fromstruct_cname(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
|
|
||||||
REQUIRE(type == 5);
|
REQUIRE(type == 5);
|
||||||
|
|
||||||
rdclass = rdclass; /*unused*/
|
UNUSED(rdclass);
|
||||||
|
|
||||||
source = source;
|
UNUSED(source);
|
||||||
target = target;
|
UNUSED(target);
|
||||||
|
|
||||||
return(DNS_R_NOTIMPLEMENTED);
|
return(DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline isc_result_t
|
static inline isc_result_t
|
||||||
tostruct_cname(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_cname(dns_rdata_t *rdata, void *target, isc_mem_t *mctx)
|
||||||
|
{
|
||||||
|
|
||||||
REQUIRE(rdata->type == 5);
|
REQUIRE(rdata->type == 5);
|
||||||
REQUIRE(target != NULL);
|
REQUIRE(target != NULL);
|
||||||
|
|
||||||
target = target;
|
UNUSED(target);
|
||||||
mctx = mctx;
|
UNUSED(mctx);
|
||||||
|
|
||||||
return(DNS_R_NOTIMPLEMENTED);
|
return(DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
freestruct_cname(void *source) {
|
freestruct_cname(void *source)
|
||||||
|
{
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
REQUIRE(ISC_FALSE);
|
REQUIRE(ISC_FALSE);
|
||||||
}
|
}
|
||||||
@@ -172,7 +178,8 @@ additionaldata_cname(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static inline isc_result_t
|
static inline isc_result_t
|
||||||
digest_cname(dns_rdata_t *rdata, dns_digestfunc_t digest, void *arg) {
|
digest_cname(dns_rdata_t *rdata, dns_digestfunc_t digest, void *arg)
|
||||||
|
{
|
||||||
isc_region_t r;
|
isc_region_t r;
|
||||||
dns_name_t name;
|
dns_name_t name;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user