Commit 63cef8bd authored by Andreas Gustafsson's avatar Andreas Gustafsson
Browse files

added UNUSED() macros for arguments that end up unused when assertion checking

is turned off
parent f8abaa0f
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: tsig_250.c,v 1.45 2000/11/08 01:55:31 bwelling Exp $ */ /* $Id: tsig_250.c,v 1.46 2000/12/01 01:40:14 gson Exp $ */
/* Reviewed: Thu Mar 16 13:39:43 PST 2000 by gson */ /* Reviewed: Thu Mar 16 13:39:43 PST 2000 by gson */
...@@ -38,6 +38,8 @@ fromtext_any_tsig(ARGS_FROMTEXT) { ...@@ -38,6 +38,8 @@ fromtext_any_tsig(ARGS_FROMTEXT) {
REQUIRE(type == 250); REQUIRE(type == 250);
REQUIRE(rdclass == 255); REQUIRE(rdclass == 255);
UNUSED(rdclass);
/* /*
* Algorithm Name. * Algorithm Name.
*/ */
...@@ -247,6 +249,8 @@ fromwire_any_tsig(ARGS_FROMWIRE) { ...@@ -247,6 +249,8 @@ fromwire_any_tsig(ARGS_FROMWIRE) {
REQUIRE(type == 250); REQUIRE(type == 250);
REQUIRE(rdclass == 255); REQUIRE(rdclass == 255);
UNUSED(rdclass);
dns_decompress_setmethods(dctx, DNS_COMPRESS_NONE); dns_decompress_setmethods(dctx, DNS_COMPRESS_NONE);
/* /*
...@@ -356,6 +360,8 @@ fromstruct_any_tsig(ARGS_FROMSTRUCT) { ...@@ -356,6 +360,8 @@ fromstruct_any_tsig(ARGS_FROMSTRUCT) {
REQUIRE(tsig->common.rdclass == rdclass); REQUIRE(tsig->common.rdclass == rdclass);
REQUIRE(tsig->common.rdtype == type); REQUIRE(tsig->common.rdtype == type);
UNUSED(rdclass);
/* /*
* Algorithm Name. * Algorithm Name.
*/ */
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: afsdb_18.c,v 1.33 2000/11/08 01:55:33 bwelling Exp $ */ /* $Id: afsdb_18.c,v 1.34 2000/12/01 01:40:15 gson Exp $ */
/* Reviewed: Wed Mar 15 14:59:00 PST 2000 by explorer */ /* Reviewed: Wed Mar 15 14:59:00 PST 2000 by explorer */
...@@ -174,6 +174,8 @@ fromstruct_afsdb(ARGS_FROMSTRUCT) { ...@@ -174,6 +174,8 @@ fromstruct_afsdb(ARGS_FROMSTRUCT) {
REQUIRE(afsdb->common.rdclass == rdclass); REQUIRE(afsdb->common.rdclass == rdclass);
REQUIRE(afsdb->common.rdtype == type); REQUIRE(afsdb->common.rdtype == type);
UNUSED(rdclass);
RETERR(uint16_tobuffer(afsdb->subtype, target)); RETERR(uint16_tobuffer(afsdb->subtype, target));
dns_name_toregion(&afsdb->server, &region); dns_name_toregion(&afsdb->server, &region);
return (isc_buffer_copyregion(target, &region)); return (isc_buffer_copyregion(target, &region));
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: cert_37.c,v 1.34 2000/11/08 01:55:34 bwelling Exp $ */ /* $Id: cert_37.c,v 1.35 2000/12/01 01:40:16 gson Exp $ */
/* Reviewed: Wed Mar 15 21:14:32 EST 2000 by tale */ /* Reviewed: Wed Mar 15 21:14:32 EST 2000 by tale */
...@@ -170,6 +170,8 @@ fromstruct_cert(ARGS_FROMSTRUCT) { ...@@ -170,6 +170,8 @@ fromstruct_cert(ARGS_FROMSTRUCT) {
REQUIRE(cert->common.rdtype == type); REQUIRE(cert->common.rdtype == type);
REQUIRE(cert->common.rdclass == rdclass); REQUIRE(cert->common.rdclass == rdclass);
UNUSED(rdclass);
RETERR(uint16_tobuffer(cert->type, target)); RETERR(uint16_tobuffer(cert->type, target));
RETERR(uint16_tobuffer(cert->key_tag, target)); RETERR(uint16_tobuffer(cert->key_tag, target));
RETERR(uint8_tobuffer(cert->algorithm, target)); RETERR(uint8_tobuffer(cert->algorithm, target));
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: cname_5.c,v 1.37 2000/11/08 01:55:35 bwelling Exp $ */ /* $Id: cname_5.c,v 1.38 2000/12/01 01:40:17 gson Exp $ */
/* reviewed: Wed Mar 15 16:48:45 PST 2000 by brister */ /* reviewed: Wed Mar 15 16:48:45 PST 2000 by brister */
...@@ -131,6 +131,8 @@ fromstruct_cname(ARGS_FROMSTRUCT) { ...@@ -131,6 +131,8 @@ fromstruct_cname(ARGS_FROMSTRUCT) {
REQUIRE(cname->common.rdtype == type); REQUIRE(cname->common.rdtype == type);
REQUIRE(cname->common.rdclass == rdclass); REQUIRE(cname->common.rdclass == rdclass);
UNUSED(rdclass);
dns_name_toregion(&cname->cname, &region); dns_name_toregion(&cname->cname, &region);
return (isc_buffer_copyregion(target, &region)); return (isc_buffer_copyregion(target, &region));
} }
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: dname_39.c,v 1.27 2000/11/08 01:55:36 bwelling Exp $ */ /* $Id: dname_39.c,v 1.28 2000/12/01 01:40:18 gson Exp $ */
/* Reviewed: Wed Mar 15 16:52:38 PST 2000 by explorer */ /* Reviewed: Wed Mar 15 16:52:38 PST 2000 by explorer */
...@@ -131,6 +131,8 @@ fromstruct_dname(ARGS_FROMSTRUCT) { ...@@ -131,6 +131,8 @@ fromstruct_dname(ARGS_FROMSTRUCT) {
REQUIRE(dname->common.rdtype == type); REQUIRE(dname->common.rdtype == type);
REQUIRE(dname->common.rdclass == rdclass); REQUIRE(dname->common.rdclass == rdclass);
UNUSED(rdclass);
dns_name_toregion(&dname->dname, &region); dns_name_toregion(&dname->dname, &region);
return (isc_buffer_copyregion(target, &region)); return (isc_buffer_copyregion(target, &region));
} }
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: gpos_27.c,v 1.26 2000/11/08 01:55:38 bwelling Exp $ */ /* $Id: gpos_27.c,v 1.27 2000/12/01 01:40:19 gson Exp $ */
/* reviewed: Wed Mar 15 16:48:45 PST 2000 by brister */ /* reviewed: Wed Mar 15 16:48:45 PST 2000 by brister */
...@@ -118,6 +118,8 @@ fromstruct_gpos(ARGS_FROMSTRUCT) { ...@@ -118,6 +118,8 @@ fromstruct_gpos(ARGS_FROMSTRUCT) {
REQUIRE(gpos->common.rdtype == type); REQUIRE(gpos->common.rdtype == type);
REQUIRE(gpos->common.rdclass == rdclass); REQUIRE(gpos->common.rdclass == rdclass);
UNUSED(rdclass);
RETERR(uint8_tobuffer(gpos->long_len, target)); RETERR(uint8_tobuffer(gpos->long_len, target));
RETERR(mem_tobuffer(target, gpos->longitude, gpos->long_len)); RETERR(mem_tobuffer(target, gpos->longitude, gpos->long_len));
RETERR(uint8_tobuffer(gpos->lat_len, target)); RETERR(uint8_tobuffer(gpos->lat_len, target));
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: hinfo_13.c,v 1.31 2000/11/08 01:55:39 bwelling Exp $ */ /* $Id: hinfo_13.c,v 1.32 2000/12/01 01:40:21 gson Exp $ */
/* /*
* Reviewed: Wed Mar 15 16:47:10 PST 2000 by halley. * Reviewed: Wed Mar 15 16:47:10 PST 2000 by halley.
...@@ -110,6 +110,8 @@ fromstruct_hinfo(ARGS_FROMSTRUCT) { ...@@ -110,6 +110,8 @@ fromstruct_hinfo(ARGS_FROMSTRUCT) {
REQUIRE(hinfo->common.rdtype == type); REQUIRE(hinfo->common.rdtype == type);
REQUIRE(hinfo->common.rdclass == rdclass); REQUIRE(hinfo->common.rdclass == rdclass);
UNUSED(rdclass);
RETERR(uint8_tobuffer(hinfo->cpu_len, target)); RETERR(uint8_tobuffer(hinfo->cpu_len, target));
RETERR(mem_tobuffer(target, hinfo->cpu, hinfo->cpu_len)); RETERR(mem_tobuffer(target, hinfo->cpu, hinfo->cpu_len));
RETERR(uint8_tobuffer(hinfo->os_len, target)); RETERR(uint8_tobuffer(hinfo->os_len, target));
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: isdn_20.c,v 1.24 2000/11/08 01:55:40 bwelling Exp $ */ /* $Id: isdn_20.c,v 1.25 2000/12/01 01:40:22 gson Exp $ */
/* Reviewed: Wed Mar 15 16:53:11 PST 2000 by bwelling */ /* Reviewed: Wed Mar 15 16:53:11 PST 2000 by bwelling */
...@@ -118,6 +118,8 @@ fromstruct_isdn(ARGS_FROMSTRUCT) { ...@@ -118,6 +118,8 @@ fromstruct_isdn(ARGS_FROMSTRUCT) {
REQUIRE(isdn->common.rdtype == type); REQUIRE(isdn->common.rdtype == type);
REQUIRE(isdn->common.rdclass == rdclass); REQUIRE(isdn->common.rdclass == rdclass);
UNUSED(rdclass);
RETERR(uint8_tobuffer(isdn->isdn_len, target)); RETERR(uint8_tobuffer(isdn->isdn_len, target));
RETERR(mem_tobuffer(target, isdn->isdn, isdn->isdn_len)); RETERR(mem_tobuffer(target, isdn->isdn, isdn->isdn_len));
RETERR(uint8_tobuffer(isdn->subaddress_len, target)); RETERR(uint8_tobuffer(isdn->subaddress_len, target));
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: key_25.c,v 1.34 2000/11/08 01:55:41 bwelling Exp $ */ /* $Id: key_25.c,v 1.35 2000/12/01 01:40:23 gson Exp $ */
/* /*
* Reviewed: Wed Mar 15 16:47:10 PST 2000 by halley. * Reviewed: Wed Mar 15 16:47:10 PST 2000 by halley.
...@@ -37,12 +37,12 @@ fromtext_key(ARGS_FROMTEXT) { ...@@ -37,12 +37,12 @@ fromtext_key(ARGS_FROMTEXT) {
dns_secproto_t proto; dns_secproto_t proto;
dns_keyflags_t flags; dns_keyflags_t flags;
REQUIRE(type == 25);
UNUSED(rdclass); UNUSED(rdclass);
UNUSED(origin); UNUSED(origin);
UNUSED(downcase); UNUSED(downcase);
REQUIRE(type == 25);
/* flags */ /* flags */
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_string, RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_string,
ISC_FALSE)); ISC_FALSE));
...@@ -145,11 +145,11 @@ static inline isc_result_t ...@@ -145,11 +145,11 @@ static inline isc_result_t
towire_key(ARGS_TOWIRE) { towire_key(ARGS_TOWIRE) {
isc_region_t sr; isc_region_t sr;
UNUSED(cctx);
REQUIRE(rdata->type == 25); REQUIRE(rdata->type == 25);
REQUIRE(rdata->length != 0); REQUIRE(rdata->length != 0);
UNUSED(cctx);
dns_rdata_toregion(rdata, &sr); dns_rdata_toregion(rdata, &sr);
return (mem_tobuffer(target, sr.base, sr.length)); return (mem_tobuffer(target, sr.base, sr.length));
} }
...@@ -179,6 +179,8 @@ fromstruct_key(ARGS_FROMSTRUCT) { ...@@ -179,6 +179,8 @@ fromstruct_key(ARGS_FROMSTRUCT) {
REQUIRE(key->common.rdtype == type); REQUIRE(key->common.rdtype == type);
REQUIRE(key->common.rdclass == rdclass); REQUIRE(key->common.rdclass == rdclass);
UNUSED(rdclass);
/* Flags */ /* Flags */
RETERR(uint16_tobuffer(key->flags, target)); RETERR(uint16_tobuffer(key->flags, target));
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: loc_29.c,v 1.25 2000/11/08 01:55:42 bwelling Exp $ */ /* $Id: loc_29.c,v 1.26 2000/12/01 01:40:24 gson Exp $ */
/* Reviewed: Wed Mar 15 18:13:09 PST 2000 by explorer */ /* Reviewed: Wed Mar 15 18:13:09 PST 2000 by explorer */
...@@ -629,6 +629,8 @@ fromstruct_loc(ARGS_FROMSTRUCT) { ...@@ -629,6 +629,8 @@ fromstruct_loc(ARGS_FROMSTRUCT) {
REQUIRE(loc->common.rdtype == type); REQUIRE(loc->common.rdtype == type);
REQUIRE(loc->common.rdclass == rdclass); REQUIRE(loc->common.rdclass == rdclass);
UNUSED(rdclass);
if (loc->v.v0.version != 0) if (loc->v.v0.version != 0)
return (ISC_R_NOTIMPLEMENTED); return (ISC_R_NOTIMPLEMENTED);
RETERR(uint8_tobuffer(loc->v.v0.version, target)); RETERR(uint8_tobuffer(loc->v.v0.version, target));
...@@ -706,6 +708,7 @@ freestruct_loc(ARGS_FREESTRUCT) { ...@@ -706,6 +708,7 @@ freestruct_loc(ARGS_FREESTRUCT) {
REQUIRE(loc->common.rdtype == 29); REQUIRE(loc->common.rdtype == 29);
UNUSED(source); UNUSED(source);
UNUSED(loc);
} }
static inline isc_result_t static inline isc_result_t
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: mb_7.c,v 1.35 2000/11/08 01:55:44 bwelling Exp $ */ /* $Id: mb_7.c,v 1.36 2000/12/01 01:40:25 gson Exp $ */
/* Reviewed: Wed Mar 15 17:31:26 PST 2000 by bwelling */ /* Reviewed: Wed Mar 15 17:31:26 PST 2000 by bwelling */
...@@ -130,6 +130,8 @@ fromstruct_mb(ARGS_FROMSTRUCT) { ...@@ -130,6 +130,8 @@ fromstruct_mb(ARGS_FROMSTRUCT) {
REQUIRE(mb->common.rdtype == type); REQUIRE(mb->common.rdtype == type);
REQUIRE(mb->common.rdclass == rdclass); REQUIRE(mb->common.rdclass == rdclass);
UNUSED(rdclass);
dns_name_toregion(&mb->mb, &region); dns_name_toregion(&mb->mb, &region);
return (isc_buffer_copyregion(target, &region)); return (isc_buffer_copyregion(target, &region));
} }
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: md_3.c,v 1.37 2000/11/08 01:55:45 bwelling Exp $ */ /* $Id: md_3.c,v 1.38 2000/12/01 01:40:26 gson Exp $ */
/* Reviewed: Wed Mar 15 17:48:20 PST 2000 by bwelling */ /* Reviewed: Wed Mar 15 17:48:20 PST 2000 by bwelling */
...@@ -130,6 +130,8 @@ fromstruct_md(ARGS_FROMSTRUCT) { ...@@ -130,6 +130,8 @@ fromstruct_md(ARGS_FROMSTRUCT) {
REQUIRE(md->common.rdtype == type); REQUIRE(md->common.rdtype == type);
REQUIRE(md->common.rdclass == rdclass); REQUIRE(md->common.rdclass == rdclass);
UNUSED(rdclass);
dns_name_toregion(&md->md, &region); dns_name_toregion(&md->md, &region);
return (isc_buffer_copyregion(target, &region)); return (isc_buffer_copyregion(target, &region));
} }
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: mf_4.c,v 1.35 2000/11/08 01:55:46 bwelling Exp $ */ /* $Id: mf_4.c,v 1.36 2000/12/01 01:40:27 gson Exp $ */
/* reviewed: Wed Mar 15 17:47:33 PST 2000 by brister */ /* reviewed: Wed Mar 15 17:47:33 PST 2000 by brister */
...@@ -130,6 +130,8 @@ fromstruct_mf(ARGS_FROMSTRUCT) { ...@@ -130,6 +130,8 @@ fromstruct_mf(ARGS_FROMSTRUCT) {
REQUIRE(mf->common.rdtype == type); REQUIRE(mf->common.rdtype == type);
REQUIRE(mf->common.rdclass == rdclass); REQUIRE(mf->common.rdclass == rdclass);
UNUSED(rdclass);
dns_name_toregion(&mf->mf, &region); dns_name_toregion(&mf->mf, &region);
return (isc_buffer_copyregion(target, &region)); return (isc_buffer_copyregion(target, &region));
} }
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: mg_8.c,v 1.33 2000/11/08 01:55:47 bwelling Exp $ */ /* $Id: mg_8.c,v 1.34 2000/12/01 01:40:28 gson Exp $ */
/* reviewed: Wed Mar 15 17:49:21 PST 2000 by brister */ /* reviewed: Wed Mar 15 17:49:21 PST 2000 by brister */
...@@ -130,6 +130,8 @@ fromstruct_mg(ARGS_FROMSTRUCT) { ...@@ -130,6 +130,8 @@ fromstruct_mg(ARGS_FROMSTRUCT) {
REQUIRE(mg->common.rdtype == type); REQUIRE(mg->common.rdtype == type);
REQUIRE(mg->common.rdclass == rdclass); REQUIRE(mg->common.rdclass == rdclass);
UNUSED(rdclass);
dns_name_toregion(&mg->mg, &region); dns_name_toregion(&mg->mg, &region);
return (isc_buffer_copyregion(target, &region)); return (isc_buffer_copyregion(target, &region));
} }
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: minfo_14.c,v 1.34 2000/11/08 01:55:48 bwelling Exp $ */ /* $Id: minfo_14.c,v 1.35 2000/12/01 01:40:30 gson Exp $ */
/* reviewed: Wed Mar 15 17:45:32 PST 2000 by brister */ /* reviewed: Wed Mar 15 17:45:32 PST 2000 by brister */
...@@ -176,6 +176,8 @@ fromstruct_minfo(ARGS_FROMSTRUCT) { ...@@ -176,6 +176,8 @@ fromstruct_minfo(ARGS_FROMSTRUCT) {
REQUIRE(minfo->common.rdtype == type); REQUIRE(minfo->common.rdtype == type);
REQUIRE(minfo->common.rdclass == rdclass); REQUIRE(minfo->common.rdclass == rdclass);
UNUSED(rdclass);
dns_name_toregion(&minfo->rmailbox, &region); dns_name_toregion(&minfo->rmailbox, &region);
RETERR(isc_buffer_copyregion(target, &region)); RETERR(isc_buffer_copyregion(target, &region));
dns_name_toregion(&minfo->emailbox, &region); dns_name_toregion(&minfo->emailbox, &region);
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: mr_9.c,v 1.32 2000/11/08 01:55:49 bwelling Exp $ */ /* $Id: mr_9.c,v 1.33 2000/12/01 01:40:31 gson Exp $ */
/* Reviewed: Wed Mar 15 21:30:35 EST 2000 by tale */ /* Reviewed: Wed Mar 15 21:30:35 EST 2000 by tale */
...@@ -130,6 +130,8 @@ fromstruct_mr(ARGS_FROMSTRUCT) { ...@@ -130,6 +130,8 @@ fromstruct_mr(ARGS_FROMSTRUCT) {
REQUIRE(mr->common.rdtype == type); REQUIRE(mr->common.rdtype == type);
REQUIRE(mr->common.rdclass == rdclass); REQUIRE(mr->common.rdclass == rdclass);
UNUSED(rdclass);
dns_name_toregion(&mr->mr, &region); dns_name_toregion(&mr->mr, &region);
return (isc_buffer_copyregion(target, &region)); return (isc_buffer_copyregion(target, &region));
} }
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: mx_15.c,v 1.42 2000/11/08 01:55:50 bwelling Exp $ */ /* $Id: mx_15.c,v 1.43 2000/12/01 01:40:32 gson Exp $ */
/* reviewed: Wed Mar 15 18:05:46 PST 2000 by brister */ /* reviewed: Wed Mar 15 18:05:46 PST 2000 by brister */
...@@ -160,6 +160,8 @@ fromstruct_mx(ARGS_FROMSTRUCT) { ...@@ -160,6 +160,8 @@ fromstruct_mx(ARGS_FROMSTRUCT) {
REQUIRE(mx->common.rdtype == type); REQUIRE(mx->common.rdtype == type);
REQUIRE(mx->common.rdclass == rdclass); REQUIRE(mx->common.rdclass == rdclass);
UNUSED(rdclass);
RETERR(uint16_tobuffer(mx->pref, target)); RETERR(uint16_tobuffer(mx->pref, target));
dns_name_toregion(&mx->mx, &region); dns_name_toregion(&mx->mx, &region);
return (isc_buffer_copyregion(target, &region)); return (isc_buffer_copyregion(target, &region));
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: ns_2.c,v 1.36 2000/11/08 01:55:52 bwelling Exp $ */ /* $Id: ns_2.c,v 1.37 2000/12/01 01:40:33 gson Exp $ */
/* Reviewed: Wed Mar 15 18:15:00 PST 2000 by bwelling */ /* Reviewed: Wed Mar 15 18:15:00 PST 2000 by bwelling */
...@@ -130,6 +130,8 @@ fromstruct_ns(ARGS_FROMSTRUCT) { ...@@ -130,6 +130,8 @@ fromstruct_ns(ARGS_FROMSTRUCT) {
REQUIRE(ns->common.rdtype == type); REQUIRE(ns->common.rdtype == type);
REQUIRE(ns->common.rdclass == rdclass); REQUIRE(ns->common.rdclass == rdclass);
UNUSED(rdclass);
dns_name_toregion(&ns->name, &region); dns_name_toregion(&ns->name, &region);
return (isc_buffer_copyregion(target, &region)); return (isc_buffer_copyregion(target, &region));
} }
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: null_10.c,v 1.29 2000/10/25 05:43:47 marka Exp $ */ /* $Id: null_10.c,v 1.30 2000/12/01 01:40:34 gson Exp $ */
/* Reviewed: Thu Mar 16 13:57:50 PST 2000 by explorer */ /* Reviewed: Thu Mar 16 13:57:50 PST 2000 by explorer */
...@@ -100,6 +100,8 @@ fromstruct_null(ARGS_FROMSTRUCT) { ...@@ -100,6 +100,8 @@ fromstruct_null(ARGS_FROMSTRUCT) {
REQUIRE((null->data != NULL && null->length != 0) || REQUIRE((null->data != NULL && null->length != 0) ||
(null->data == NULL && null->length == 0)); (null->data == NULL && null->length == 0));
UNUSED(rdclass);
return (mem_tobuffer(target, null->data, null->length)); return (mem_tobuffer(target, null->data, null->length));
} }
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@