mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 06:55:30 +00:00
formatting changes, and addition of UNUSED() where needed
This commit is contained in:
@@ -15,9 +15,9 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: afsdb_18.h,v 1.9 2000/02/03 23:42:57 halley Exp $ */
|
/* $Id: afsdb_18.h,v 1.10 2000/03/16 00:52:59 explorer Exp $ */
|
||||||
|
|
||||||
/* RFC 1183 */
|
/* RFC 1183 */
|
||||||
|
|
||||||
typedef struct dns_rdata_afsdb {
|
typedef struct dns_rdata_afsdb {
|
||||||
dns_rdatacommon_t common;
|
dns_rdatacommon_t common;
|
||||||
|
@@ -15,9 +15,11 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: dname_39.c,v 1.13 2000/02/03 23:42:58 halley Exp $ */
|
/* $Id: dname_39.c,v 1.14 2000/03/16 00:53:00 explorer Exp $ */
|
||||||
|
|
||||||
/* draft-ietf-dnsind-dname-02.txt */
|
/* Reviewed: Wed Mar 15 16:52:38 PST 2000 by explorer */
|
||||||
|
|
||||||
|
/* draft-ietf-dnsind-dname-02.txt */
|
||||||
|
|
||||||
#ifndef RDATA_GENERIC_DNAME_39_C
|
#ifndef RDATA_GENERIC_DNAME_39_C
|
||||||
#define RDATA_GENERIC_DNAME_39_C
|
#define RDATA_GENERIC_DNAME_39_C
|
||||||
@@ -31,8 +33,9 @@ fromtext_dname(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
dns_name_t name;
|
dns_name_t name;
|
||||||
isc_buffer_t buffer;
|
isc_buffer_t buffer;
|
||||||
|
|
||||||
|
UNUSED(rdclass);
|
||||||
|
|
||||||
REQUIRE(type == 39);
|
REQUIRE(type == 39);
|
||||||
rdclass = rdclass; /*unused*/
|
|
||||||
|
|
||||||
RETERR(gettoken(lexer, &token, isc_tokentype_string, ISC_FALSE));
|
RETERR(gettoken(lexer, &token, isc_tokentype_string, ISC_FALSE));
|
||||||
|
|
||||||
@@ -72,8 +75,9 @@ fromwire_dname(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
{
|
{
|
||||||
dns_name_t name;
|
dns_name_t name;
|
||||||
|
|
||||||
|
UNUSED(rdclass);
|
||||||
|
|
||||||
REQUIRE(type == 39);
|
REQUIRE(type == 39);
|
||||||
rdclass = rdclass; /*unused*/
|
|
||||||
|
|
||||||
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 +89,8 @@ fromwire_dname(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static inline isc_result_t
|
static inline isc_result_t
|
||||||
towire_dname(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_dname(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 +109,8 @@ towire_dname(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static inline int
|
static inline int
|
||||||
compare_dname(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_dname(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;
|
||||||
@@ -130,32 +136,31 @@ static inline isc_result_t
|
|||||||
fromstruct_dname(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_dname(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
|
UNUSED(rdclass);
|
||||||
|
UNUSED(source);
|
||||||
|
UNUSED(target);
|
||||||
|
|
||||||
REQUIRE(type == 39);
|
REQUIRE(type == 39);
|
||||||
|
|
||||||
rdclass = rdclass; /*unused*/
|
|
||||||
|
|
||||||
source = source;
|
|
||||||
target = target;
|
|
||||||
|
|
||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline isc_result_t
|
static inline isc_result_t
|
||||||
tostruct_dname(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_dname(dns_rdata_t *rdata, void *target, isc_mem_t *mctx)
|
||||||
|
{
|
||||||
REQUIRE(rdata->type == 39);
|
UNUSED(target);
|
||||||
REQUIRE(target != NULL && target == NULL);
|
UNUSED(mctx);
|
||||||
|
|
||||||
target = target;
|
REQUIRE(rdata->type == 39);
|
||||||
mctx = mctx;
|
REQUIRE(target != NULL);
|
||||||
|
|
||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
freestruct_dname(void *source) {
|
freestruct_dname(void *source)
|
||||||
REQUIRE(source != NULL && source != NULL);
|
{
|
||||||
|
REQUIRE(source != NULL);
|
||||||
REQUIRE(ISC_FALSE); /* XXX */
|
REQUIRE(ISC_FALSE); /* XXX */
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -163,16 +168,17 @@ static inline isc_result_t
|
|||||||
additionaldata_dname(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_dname(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
REQUIRE(rdata->type == 39);
|
UNUSED(add);
|
||||||
|
UNUSED(arg);
|
||||||
|
|
||||||
(void)add;
|
REQUIRE(rdata->type == 39);
|
||||||
(void)arg;
|
|
||||||
|
|
||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline isc_result_t
|
static inline isc_result_t
|
||||||
digest_dname(dns_rdata_t *rdata, dns_digestfunc_t digest, void *arg) {
|
digest_dname(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;
|
||||||
|
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: dname_39.h,v 1.8 2000/02/03 23:42:58 halley Exp $ */
|
/* $Id: dname_39.h,v 1.9 2000/03/16 00:53:01 explorer Exp $ */
|
||||||
|
|
||||||
/* draft-ietf-dnsind-dname-02.txt */
|
/* draft-ietf-dnsind-dname-02.txt */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user