declare arguments as UNUSED() when used in assertions only

This commit is contained in:
Andreas Gustafsson
2000-04-28 01:24:18 +00:00
parent 68e4926b22
commit 82ca33427b
50 changed files with 270 additions and 110 deletions
+2 -1
View File
@@ -300,7 +300,8 @@ client_send(isc_task_t *task, isc_event_t *ev)
isc_socketevent_t *dev = (isc_socketevent_t *)ev;
UNUSED(task);
UNUSED(dev);
INSIST(CLIENT_ISSEND(client));
INSIST(client->sendbuf == dev->region.base);
+10
View File
@@ -460,6 +460,8 @@ static void
client_shutdown(isc_task_t *task, isc_event_t *event) {
ns_client_t *client;
UNUSED(task);
REQUIRE(event != NULL);
REQUIRE(event->ev_type == ISC_TASKEVENT_SHUTDOWN);
client = event->ev_arg;
@@ -579,6 +581,8 @@ client_senddone(isc_task_t *task, isc_event_t *event) {
ns_client_t *client;
isc_socketevent_t *sevent = (isc_socketevent_t *) event;
UNUSED(task);
REQUIRE(sevent != NULL);
REQUIRE(sevent->ev_type == ISC_SOCKEVENT_SENDDONE);
client = sevent->ev_arg;
@@ -815,6 +819,8 @@ client_request(isc_task_t *task, isc_event_t *event) {
REQUIRE(NS_CLIENT_VALID(client));
REQUIRE(task == client->task);
UNUSED(task);
INSIST(client->recursionquota == NULL);
INSIST(client->state ==
@@ -1075,6 +1081,8 @@ client_timeout(isc_task_t *task, isc_event_t *event) {
REQUIRE(task == client->task);
REQUIRE(client->timer != NULL);
UNUSED(task);
CTRACE("timeout");
isc_event_free(&event);
@@ -1240,6 +1248,8 @@ client_newconn(isc_task_t *task, isc_event_t *event) {
REQUIRE(NS_CLIENT_VALID(client));
REQUIRE(client->task == task);
UNUSED(task);
INSIST(client->state == NS_CLIENTSTATE_READY);
INSIST(client->naccepts == 1);
+2
View File
@@ -1719,6 +1719,8 @@ query_resume(isc_task_t *task, isc_event_t *event) {
* Resume a query after recursion.
*/
UNUSED(task);
REQUIRE(event->ev_type == DNS_EVENT_FETCHDONE);
client = devent->ev_arg;
REQUIRE(NS_CLIENT_VALID(client));
+2
View File
@@ -2307,6 +2307,8 @@ updatedone_action(isc_task_t *task, isc_event_t *event)
update_event_t *uev = (update_event_t *) event;
ns_client_t *client = (ns_client_t *) event->ev_arg;
UNUSED(task);
INSIST(event->ev_type == DNS_EVENT_UPDATEDONE);
INSIST(task == client->task);
+1
View File
@@ -176,6 +176,7 @@ fetch_done(isc_task_t *task, isc_event_t *event) {
dns_byaddr_t *byaddr = event->ev_arg;
dns_fetchevent_t *fevent;
UNUSED(task);
REQUIRE(event->ev_type == DNS_EVENT_FETCHDONE);
REQUIRE(VALID_BYADDR(byaddr));
REQUIRE(byaddr->task == task);
+2 -1
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: cache.c,v 1.18 2000/04/25 19:35:39 tale Exp $ */
/* $Id: cache.c,v 1.19 2000/04/28 01:23:49 gson Exp $ */
#include <config.h>
@@ -452,6 +452,7 @@ end_cleaning(cache_cleaner_t *cleaner, isc_event_t *event) {
static void
cleaning_timer_action(isc_task_t *task, isc_event_t *event) {
cache_cleaner_t *cleaner = event->ev_arg;
UNUSED(task);
INSIST(task == cleaner->task);
INSIST(event->ev_type == ISC_TIMEREVENT_TICK);
+3 -1
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: confctx.c,v 1.52 2000/04/28 01:10:29 halley Exp $ */
/* $Id: confctx.c,v 1.53 2000/04/28 01:23:54 gson Exp $ */
#include <config.h>
@@ -2617,6 +2617,8 @@ cfg_get_iplist(dns_c_options_t *options,
{
isc_result_t res;
UNUSED(options);
REQUIRE(DNS_C_CONFOPT_VALID(options));
REQUIRE(resval != NULL);
+2
View File
@@ -2256,6 +2256,8 @@ cache_find(dns_db_t *db, dns_name_t *name, dns_dbversion_t *version,
rdatasetheader_t *foundsig, *nssig, *cnamesig;
rbtdb_rdatatype_t sigtype, nxtype;
UNUSED(version);
search.rbtdb = (dns_rbtdb_t *)db;
REQUIRE(VALID_RBTDB(search.rbtdb));
+3 -1
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: tsig_250.c,v 1.29 2000/04/27 00:02:22 tale Exp $ */
/* $Id: tsig_250.c,v 1.30 2000/04/28 01:23:58 gson Exp $ */
/* Reviewed: Thu Mar 16 13:39:43 PST 2000 by gson */
@@ -467,6 +467,7 @@ additionaldata_any_tsig(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
REQUIRE(rdata->type == 250);
REQUIRE(rdata->rdclass == 255);
UNUSED(rdata);
UNUSED(add);
UNUSED(arg);
@@ -479,6 +480,7 @@ digest_any_tsig(dns_rdata_t *rdata, dns_digestfunc_t digest, void *arg) {
REQUIRE(rdata->type == 250);
REQUIRE(rdata->rdclass == 255);
UNUSED(rdata);
UNUSED(digest);
UNUSED(arg);
+8 -4
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: afsdb_18.c,v 1.22 2000/04/27 00:02:23 tale Exp $ */
/* $Id: afsdb_18.c,v 1.23 2000/04/28 01:23:59 gson Exp $ */
/* Reviewed: Wed Mar 15 14:59:00 PST 2000 by explorer */
@@ -185,12 +185,13 @@ fromstruct_afsdb(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
static inline isc_result_t
tostruct_afsdb(dns_rdata_t *rdata, void *target, isc_mem_t *mctx)
{
UNUSED(target);
UNUSED(mctx);
REQUIRE(rdata->type == 18);
REQUIRE(target != NULL);
UNUSED(rdata);
UNUSED(target);
UNUSED(mctx);
return (ISC_R_NOTIMPLEMENTED);
}
@@ -202,6 +203,9 @@ freestruct_afsdb(void *source)
REQUIRE(source != NULL);
REQUIRE(afsdb->common.rdtype == 18);
REQUIRE(ISC_FALSE);
UNUSED(source);
UNUSED(afsdb);
}
static inline isc_result_t
+6 -2
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: cert_37.c,v 1.23 2000/04/27 00:02:24 tale Exp $ */
/* $Id: cert_37.c,v 1.24 2000/04/28 01:23:59 gson Exp $ */
/* Reviewed: Wed Mar 15 21:14:32 EST 2000 by tale */
@@ -165,7 +165,8 @@ tostruct_cert(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
REQUIRE(rdata->type == 37);
REQUIRE(target != NULL && target == NULL);
UNUSED(rdata);
UNUSED(target);
UNUSED(mctx);
@@ -176,6 +177,8 @@ static inline void
freestruct_cert(void *target) {
REQUIRE(target != NULL && target != NULL);
REQUIRE(ISC_FALSE); /* XXX */
UNUSED(target);
}
static inline isc_result_t
@@ -184,6 +187,7 @@ additionaldata_cert(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
{
REQUIRE(rdata->type == 37);
UNUSED(rdata);
UNUSED(add);
UNUSED(arg);
+2 -1
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: cname_5.c,v 1.26 2000/04/27 23:57:55 gson Exp $ */
/* $Id: cname_5.c,v 1.27 2000/04/28 01:24:00 gson Exp $ */
/* reviewed: Wed Mar 15 16:48:45 PST 2000 by brister */
@@ -152,6 +152,7 @@ tostruct_cname(dns_rdata_t *rdata, void *target, isc_mem_t *mctx)
REQUIRE(rdata->type == 5);
REQUIRE(target != NULL);
UNUSED(rdata);
UNUSED(target);
UNUSED(mctx);
+5 -1
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: dname_39.c,v 1.18 2000/04/27 00:02:25 tale Exp $ */
/* $Id: dname_39.c,v 1.19 2000/04/28 01:24:00 gson Exp $ */
/* Reviewed: Wed Mar 15 16:52:38 PST 2000 by explorer */
@@ -149,6 +149,7 @@ fromstruct_dname(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
static inline isc_result_t
tostruct_dname(dns_rdata_t *rdata, void *target, isc_mem_t *mctx)
{
UNUSED(rdata);
UNUSED(target);
UNUSED(mctx);
@@ -163,12 +164,15 @@ freestruct_dname(void *source)
{
REQUIRE(source != NULL);
REQUIRE(ISC_FALSE); /* XXX */
UNUSED(source);
}
static inline isc_result_t
additionaldata_dname(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
void *arg)
{
UNUSED(rdata);
UNUSED(add);
UNUSED(arg);
+5 -1
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: gpos_27.c,v 1.16 2000/04/07 03:54:12 explorer Exp $ */
/* $Id: gpos_27.c,v 1.17 2000/04/28 01:24:01 gson Exp $ */
/* reviewed: Wed Mar 15 16:48:45 PST 2000 by brister */
@@ -135,6 +135,7 @@ tostruct_gpos(dns_rdata_t *rdata, void *target, isc_mem_t *mctx)
REQUIRE(rdata->type == 27);
UNUSED(rdata);
UNUSED(target);
UNUSED(mctx);
@@ -146,6 +147,8 @@ freestruct_gpos(void *source)
{
REQUIRE(source != NULL);
REQUIRE(ISC_FALSE); /* XXX */
UNUSED(source);
}
static inline isc_result_t
@@ -154,6 +157,7 @@ additionaldata_gpos(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
{
REQUIRE(rdata->type == 27);
UNUSED(rdata);
UNUSED(add);
UNUSED(arg);
+7 -3
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: hinfo_13.c,v 1.22 2000/04/07 03:54:13 explorer Exp $ */
/* $Id: hinfo_13.c,v 1.23 2000/04/28 01:24:01 gson Exp $ */
/*
* Reviewed: Wed Mar 15 16:47:10 PST 2000 by halley.
@@ -122,6 +122,7 @@ tostruct_hinfo(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
REQUIRE(rdata->type == 13);
UNUSED(rdata);
UNUSED(target);
UNUSED(mctx);
@@ -132,16 +133,19 @@ static inline void
freestruct_hinfo(void *source) {
REQUIRE(source != NULL);
REQUIRE(ISC_FALSE); /* XXX */
UNUSED(source);
}
static inline isc_result_t
additionaldata_hinfo(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
void *arg)
{
REQUIRE(rdata->type == 13);
UNUSED(add);
UNUSED(arg);
REQUIRE(rdata->type == 13);
UNUSED(rdata);
return (ISC_R_SUCCESS);
}
+9 -5
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: isdn_20.c,v 1.16 2000/04/07 03:54:14 explorer Exp $ */
/* $Id: isdn_20.c,v 1.17 2000/04/28 01:24:01 gson Exp $ */
/* Reviewed: Wed Mar 15 16:53:11 PST 2000 by bwelling */
@@ -126,11 +126,12 @@ fromstruct_isdn(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
static inline isc_result_t
tostruct_isdn(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
REQUIRE(rdata->type == 20);
UNUSED(rdata);
UNUSED(target);
UNUSED(mctx);
REQUIRE(rdata->type == 20);
return (ISC_R_NOTIMPLEMENTED);
}
@@ -138,17 +139,20 @@ static inline void
freestruct_isdn(void *source) {
REQUIRE(source != NULL);
REQUIRE(ISC_FALSE); /*XXX*/
UNUSED(source);
}
static inline isc_result_t
additionaldata_isdn(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
void *arg)
{
REQUIRE(rdata->type == 20);
UNUSED(rdata);
UNUSED(add);
UNUSED(arg);
REQUIRE(rdata->type == 20);
return (ISC_R_SUCCESS);
}
+2 -1
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: key_25.c,v 1.21 2000/04/27 00:02:26 tale Exp $ */
/* $Id: key_25.c,v 1.22 2000/04/28 01:24:02 gson Exp $ */
/*
* Reviewed: Wed Mar 15 16:47:10 PST 2000 by halley.
@@ -264,6 +264,7 @@ additionaldata_key(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
{
REQUIRE(rdata->type == 25);
UNUSED(rdata);
UNUSED(add);
UNUSED(arg);
+9 -5
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: loc_29.c,v 1.15 2000/04/27 00:02:27 tale Exp $ */
/* $Id: loc_29.c,v 1.16 2000/04/28 01:24:02 gson Exp $ */
/* Reviewed: Wed Mar 15 18:13:09 PST 2000 by explorer */
@@ -583,11 +583,12 @@ fromstruct_loc(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
static inline isc_result_t
tostruct_loc(dns_rdata_t *rdata, void *target, isc_mem_t *mctx)
{
REQUIRE(rdata->type == 29);
UNUSED(rdata);
UNUSED(target);
UNUSED(mctx);
REQUIRE(rdata->type == 29);
return (ISC_R_NOTIMPLEMENTED);
}
@@ -596,17 +597,20 @@ freestruct_loc(void *source)
{
REQUIRE(source != NULL);
REQUIRE(ISC_FALSE); /*XXX*/
UNUSED(source);
}
static inline isc_result_t
additionaldata_loc(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
void *arg)
{
REQUIRE(rdata->type == 29);
UNUSED(rdata);
UNUSED(add);
UNUSED(arg);
REQUIRE(rdata->type == 29);
return (ISC_R_SUCCESS);
}
+3 -1
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: mb_7.c,v 1.25 2000/04/27 00:02:27 tale Exp $ */
/* $Id: mb_7.c,v 1.26 2000/04/28 01:24:03 gson Exp $ */
/* Reviewed: Wed Mar 15 17:31:26 PST 2000 by bwelling */
@@ -144,6 +144,7 @@ fromstruct_mb(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
static inline isc_result_t
tostruct_mb(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
UNUSED(rdata);
UNUSED(target);
UNUSED(mctx);
@@ -154,6 +155,7 @@ tostruct_mb(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
static inline void
freestruct_mb(void *source) {
UNUSED(source);
REQUIRE(source != NULL);
REQUIRE(ISC_FALSE); /*XXX*/
}
+3 -1
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: md_3.c,v 1.27 2000/04/27 23:57:55 gson Exp $ */
/* $Id: md_3.c,v 1.28 2000/04/28 01:24:03 gson Exp $ */
/* Reviewed: Wed Mar 15 17:48:20 PST 2000 by bwelling */
@@ -157,6 +157,8 @@ static inline void
freestruct_md(void *source) {
REQUIRE(source != NULL);
REQUIRE(ISC_FALSE); /*XXX*/
UNUSED(source);
}
static inline isc_result_t
+3 -1
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: mf_4.c,v 1.25 2000/04/27 23:57:55 gson Exp $ */
/* $Id: mf_4.c,v 1.26 2000/04/28 01:24:04 gson Exp $ */
/* reviewed: Wed Mar 15 17:47:33 PST 2000 by brister */
@@ -164,6 +164,8 @@ freestruct_mf(void *source)
{
REQUIRE(source != NULL);
REQUIRE(ISC_FALSE); /*XXX*/
UNUSED(source);
}
static inline isc_result_t
+6 -3
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: mg_8.c,v 1.23 2000/04/27 00:02:29 tale Exp $ */
/* $Id: mg_8.c,v 1.24 2000/04/28 01:24:04 gson Exp $ */
/* reviewed: Wed Mar 15 17:49:21 PST 2000 by brister */
@@ -152,6 +152,7 @@ tostruct_mg(dns_rdata_t *rdata, void *target, isc_mem_t *mctx)
REQUIRE(rdata->type == 8);
UNUSED(rdata);
UNUSED(target);
UNUSED(mctx);
@@ -163,6 +164,7 @@ freestruct_mg(void *source)
{
REQUIRE(source != NULL);
REQUIRE(ISC_FALSE); /*XXX*/
UNUSED(source);
}
static inline isc_result_t
@@ -171,8 +173,9 @@ additionaldata_mg(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
{
REQUIRE(rdata->type == 8);
(void)add;
(void)arg;
UNUSED(add);
UNUSED(arg);
UNUSED(rdata);
return (ISC_R_SUCCESS);
}
+7 -3
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: minfo_14.c,v 1.24 2000/04/27 00:02:30 tale Exp $ */
/* $Id: minfo_14.c,v 1.25 2000/04/28 01:24:05 gson Exp $ */
/* reviewed: Wed Mar 15 17:45:32 PST 2000 by brister */
@@ -198,6 +198,7 @@ tostruct_minfo(dns_rdata_t *rdata, void *target, isc_mem_t *mctx)
REQUIRE(rdata->type == 14);
UNUSED(rdata);
UNUSED(target);
UNUSED(mctx);
@@ -209,6 +210,8 @@ freestruct_minfo(void *source)
{
REQUIRE(source != NULL);
REQUIRE(ISC_FALSE); /*XXX*/
UNUSED(source);
}
static inline isc_result_t
@@ -217,8 +220,9 @@ additionaldata_minfo(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
{
REQUIRE(rdata->type == 14);
(void)add;
(void)arg;
UNUSED(rdata);
UNUSED(add);
UNUSED(arg);
return (ISC_R_SUCCESS);
}
+5 -1
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: mr_9.c,v 1.22 2000/04/27 00:02:31 tale Exp $ */
/* $Id: mr_9.c,v 1.23 2000/04/28 01:24:05 gson Exp $ */
/* Reviewed: Wed Mar 15 21:30:35 EST 2000 by tale */
@@ -145,6 +145,7 @@ static inline isc_result_t
tostruct_mr(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
REQUIRE(rdata->type == 9);
UNUSED(rdata);
UNUSED(target);
UNUSED(mctx);
@@ -155,6 +156,8 @@ static inline void
freestruct_mr(void *source) {
REQUIRE(source != NULL);
REQUIRE(ISC_FALSE); /*XXX*/
UNUSED(source);
}
static inline isc_result_t
@@ -163,6 +166,7 @@ additionaldata_mr(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
{
REQUIRE(rdata->type == 9);
UNUSED(rdata);
UNUSED(add);
UNUSED(arg);
+4 -1
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: mx_15.c,v 1.29 2000/04/27 00:02:31 tale Exp $ */
/* $Id: mx_15.c,v 1.30 2000/04/28 01:24:05 gson Exp $ */
/* reviewed: Wed Mar 15 18:05:46 PST 2000 by brister */
@@ -177,6 +177,7 @@ tostruct_mx(dns_rdata_t *rdata, void *target, isc_mem_t *mctx)
{
REQUIRE(rdata->type == 15);
UNUSED(rdata);
UNUSED(target);
UNUSED(mctx);
@@ -188,6 +189,8 @@ freestruct_mx(void *source)
{
REQUIRE(source != NULL);
REQUIRE(ISC_FALSE); /*XXX*/
UNUSED(source);
}
static inline isc_result_t
+6 -1
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: null_10.c,v 1.21 2000/04/27 00:02:33 tale Exp $ */
/* $Id: null_10.c,v 1.22 2000/04/28 01:24:06 gson Exp $ */
/* Reviewed: Thu Mar 16 13:57:50 PST 2000 by explorer */
@@ -45,6 +45,7 @@ static inline isc_result_t
totext_null(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
isc_buffer_t *target)
{
UNUSED(rdata);
UNUSED(tctx);
UNUSED(target);
@@ -112,6 +113,7 @@ fromstruct_null(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
static inline isc_result_t
tostruct_null(dns_rdata_t *rdata, void *target, isc_mem_t *mctx)
{
UNUSED(rdata);
UNUSED(target);
UNUSED(mctx);
@@ -123,6 +125,8 @@ tostruct_null(dns_rdata_t *rdata, void *target, isc_mem_t *mctx)
static inline void
freestruct_null(void *source)
{
UNUSED(source);
REQUIRE(source != NULL);
REQUIRE(ISC_FALSE);
}
@@ -131,6 +135,7 @@ static inline isc_result_t
additionaldata_null(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
void *arg)
{
UNUSED(rdata);
UNUSED(add);
UNUSED(arg);
+7 -3
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: nxt_30.c,v 1.26 2000/04/27 00:02:34 tale Exp $ */
/* $Id: nxt_30.c,v 1.27 2000/04/28 01:24:07 gson Exp $ */
/* reviewed: Wed Mar 15 18:21:15 PST 2000 by brister */
@@ -223,6 +223,7 @@ tostruct_nxt(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
REQUIRE(rdata->type == 30);
UNUSED(rdata);
UNUSED(target);
UNUSED(mctx);
@@ -236,6 +237,8 @@ freestruct_nxt(void *source) {
REQUIRE(source != NULL);
REQUIRE(nxt->common.rdtype == 30);
REQUIRE(ISC_FALSE);
UNUSED(nxt);
}
static inline isc_result_t
@@ -244,8 +247,9 @@ additionaldata_nxt(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
{
REQUIRE(rdata->type == 30);
(void)add;
(void)arg;
UNUSED(rdata);
UNUSED(add);
UNUSED(arg);
return (ISC_R_SUCCESS);
}
+5 -1
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: opt_41.c,v 1.9 2000/04/27 00:02:35 tale Exp $ */
/* $Id: opt_41.c,v 1.10 2000/04/28 01:24:07 gson Exp $ */
/* Reviewed: Thu Mar 16 14:06:44 PST 2000 by gson */
@@ -56,6 +56,7 @@ totext_opt(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
REQUIRE(rdata->type == 41);
UNUSED(rdata);
UNUSED(tctx);
UNUSED(target);
@@ -147,6 +148,7 @@ tostruct_opt(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
REQUIRE(rdata->type == 41);
UNUSED(rdata);
UNUSED(target);
UNUSED(mctx);
@@ -164,6 +166,7 @@ additionaldata_opt(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
{
REQUIRE(rdata->type == 41);
UNUSED(rdata);
UNUSED(add);
UNUSED(arg);
@@ -179,6 +182,7 @@ digest_opt(dns_rdata_t *rdata, dns_digestfunc_t digest, void *arg) {
REQUIRE(rdata->type == 41);
UNUSED(rdata);
UNUSED(digest);
UNUSED(arg);
+11 -7
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: ptr_12.c,v 1.23 2000/04/27 00:02:36 tale Exp $ */
/* $Id: ptr_12.c,v 1.24 2000/04/28 01:24:07 gson Exp $ */
/* Reviewed: Thu Mar 16 14:05:12 PST 2000 by explorer */
@@ -135,23 +135,24 @@ static inline isc_result_t
fromstruct_ptr(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
isc_buffer_t *target)
{
REQUIRE(type == 12);
UNUSED(rdclass);
UNUSED(source);
UNUSED(target);
REQUIRE(type == 12);
return (ISC_R_NOTIMPLEMENTED);
}
static inline isc_result_t
tostruct_ptr(dns_rdata_t *rdata, void *target, isc_mem_t *mctx)
{
REQUIRE(rdata->type == 12);
UNUSED(rdata);
UNUSED(target);
UNUSED(mctx);
REQUIRE(rdata->type == 12);
return (ISC_R_NOTIMPLEMENTED);
}
@@ -160,17 +161,20 @@ freestruct_ptr(void *source)
{
REQUIRE(source != NULL);
REQUIRE(ISC_FALSE);
UNUSED(source);
}
static inline isc_result_t
additionaldata_ptr(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
void *arg)
{
REQUIRE(rdata->type == 12);
UNUSED(rdata);
UNUSED(add);
UNUSED(arg);
REQUIRE(rdata->type == 12);
return (ISC_R_SUCCESS);
}
+9 -5
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: rp_17.c,v 1.20 2000/04/27 00:02:37 tale Exp $ */
/* $Id: rp_17.c,v 1.21 2000/04/28 01:24:08 gson Exp $ */
/* RFC 1183 */
@@ -192,11 +192,12 @@ fromstruct_rp(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
static inline isc_result_t
tostruct_rp(dns_rdata_t *rdata, void *target, isc_mem_t *mctx)
{
REQUIRE(rdata->type == 17);
UNUSED(rdata);
UNUSED(target);
UNUSED(mctx);
REQUIRE(rdata->type == 17);
return (ISC_R_NOTIMPLEMENTED);
}
@@ -205,17 +206,20 @@ freestruct_rp(void *source)
{
REQUIRE(source != NULL);
REQUIRE(ISC_FALSE); /*XXX*/
UNUSED(source);
}
static inline isc_result_t
additionaldata_rp(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
void *arg)
{
REQUIRE(rdata->type == 17);
UNUSED(rdata);
UNUSED(add);
UNUSED(arg);
REQUIRE(rdata->type == 17);
return (ISC_R_SUCCESS);
}
+6 -3
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: rt_21.c,v 1.20 2000/04/27 00:02:37 tale Exp $ */
/* $Id: rt_21.c,v 1.21 2000/04/28 01:24:08 gson Exp $ */
/* reviewed: Thu Mar 16 15:02:31 PST 2000 by brister */
@@ -187,11 +187,12 @@ static inline isc_result_t
tostruct_rt(dns_rdata_t *rdata, void *target, isc_mem_t *mctx)
{
REQUIRE(rdata->type == 21);
UNUSED(rdata);
UNUSED(target);
UNUSED(mctx);
REQUIRE(rdata->type == 21);
return (ISC_R_NOTIMPLEMENTED);
}
@@ -200,6 +201,8 @@ freestruct_rt(void *source)
{
REQUIRE(source != NULL);
REQUIRE(ISC_FALSE); /*XXX*/
UNUSED(source);
}
static inline isc_result_t
+3 -1
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: sig_24.c,v 1.33 2000/04/27 00:02:38 tale Exp $ */
/* $Id: sig_24.c,v 1.34 2000/04/28 01:24:09 gson Exp $ */
/* Reviewed: Fri Mar 17 09:05:02 PST 2000 by gson */
@@ -448,6 +448,7 @@ additionaldata_sig(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
{
REQUIRE(rdata->type == 24);
UNUSED(rdata);
UNUSED(add);
UNUSED(arg);
@@ -459,6 +460,7 @@ digest_sig(dns_rdata_t *rdata, dns_digestfunc_t digest, void *arg) {
REQUIRE(rdata->type == 24);
UNUSED(rdata);
UNUSED(digest);
UNUSED(arg);
+3 -1
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: tkey_249.c,v 1.26 2000/04/27 00:02:41 tale Exp $ */
/* $Id: tkey_249.c,v 1.27 2000/04/28 01:24:09 gson Exp $ */
/*
* Reviewed: Thu Mar 16 17:35:30 PST 2000 by halley.
@@ -454,6 +454,7 @@ static inline isc_result_t
additionaldata_tkey(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
void *arg)
{
UNUSED(rdata);
UNUSED(add);
UNUSED(arg);
@@ -465,6 +466,7 @@ additionaldata_tkey(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
static inline isc_result_t
digest_tkey(dns_rdata_t *rdata, dns_digestfunc_t digest, void *arg)
{
UNUSED(rdata);
UNUSED(digest);
UNUSED(arg);
+10 -6
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: txt_16.c,v 1.23 2000/04/27 00:02:42 tale Exp $ */
/* $Id: txt_16.c,v 1.24 2000/04/28 01:24:11 gson Exp $ */
/* Reviewed: Thu Mar 16 15:40:00 PST 2000 by bwelling */
@@ -138,11 +138,12 @@ fromstruct_txt(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
static inline isc_result_t
tostruct_txt(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
REQUIRE(rdata->type == 16);
UNUSED(rdata);
UNUSED(target);
UNUSED(mctx);
REQUIRE(rdata->type == 16);
return (ISC_R_NOTIMPLEMENTED);
}
@@ -150,17 +151,20 @@ static inline void
freestruct_txt(void *source) {
REQUIRE(source != NULL);
REQUIRE(ISC_FALSE);
UNUSED(source);
}
static inline isc_result_t
additionaldata_txt(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
void *arg)
{
UNUSED(add);
UNUSED(arg);
REQUIRE(rdata->type == 16);
UNUSED(rdata);
UNUSED(add);
UNUSED(arg);
return (ISC_R_SUCCESS);
}
+12 -9
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: unspec_103.c,v 1.15 2000/04/27 00:02:44 tale Exp $ */
/* $Id: unspec_103.c,v 1.16 2000/04/28 01:24:11 gson Exp $ */
#ifndef RDATA_GENERIC_UNSPEC_103_C
#define RDATA_GENERIC_UNSPEC_103_C
@@ -98,10 +98,9 @@ fromstruct_unspec(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
REQUIRE(type == 103);
rdclass = rdclass; /*unused*/
source = source;
target = target;
UNUSED(rdclass);
UNUSED(source);
UNUSED(target);
return (ISC_R_NOTIMPLEMENTED);
}
@@ -111,8 +110,9 @@ tostruct_unspec(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
REQUIRE(rdata->type == 103);
target = target;
mctx = mctx;
UNUSED(rdata);
UNUSED(target);
UNUSED(mctx);
return (ISC_R_NOTIMPLEMENTED);
}
@@ -121,6 +121,8 @@ static inline void
freestruct_unspec(void *source) {
REQUIRE(source != NULL);
REQUIRE(ISC_FALSE); /*XXX*/
UNUSED(source);
}
static inline isc_result_t
@@ -129,8 +131,9 @@ additionaldata_unspec(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
{
REQUIRE(rdata->type == 103);
(void)add;
(void)arg;
UNUSED(rdata);
UNUSED(add);
UNUSED(arg);
return (ISC_R_SUCCESS);
}
+7 -3
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: x25_19.c,v 1.15 2000/04/27 00:02:45 tale Exp $ */
/* $Id: x25_19.c,v 1.16 2000/04/28 01:24:12 gson Exp $ */
/* Reviewed: Thu Mar 16 16:15:57 PST 2000 by bwelling */
@@ -127,6 +127,7 @@ tostruct_x25(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
UNUSED(target);
UNUSED(mctx);
UNUSED(rdata);
return (ISC_R_NOTIMPLEMENTED);
}
@@ -135,17 +136,20 @@ static inline void
freestruct_x25(void *source) {
REQUIRE(source != NULL);
REQUIRE(ISC_FALSE); /*XXX*/
UNUSED(source);
}
static inline isc_result_t
additionaldata_x25(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
void *arg)
{
REQUIRE(rdata->type == 19);
UNUSED(rdata);
UNUSED(add);
UNUSED(arg);
REQUIRE(rdata->type == 19);
return (ISC_R_SUCCESS);
}
+5 -3
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: a_1.c,v 1.9 2000/04/27 23:57:56 gson Exp $ */
/* $Id: a_1.c,v 1.10 2000/04/28 01:24:12 gson Exp $ */
/* reviewed: Thu Mar 16 15:58:36 PST 2000 by brister */
@@ -184,6 +184,7 @@ freestruct_hs_a(void *source)
REQUIRE(source != NULL);
REQUIRE(ISC_FALSE); /*XXX*/
}
static inline isc_result_t
@@ -193,8 +194,9 @@ additionaldata_hs_a(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
REQUIRE(rdata->type == 1);
REQUIRE(rdata->rdclass == 4);
(void)add;
(void)arg;
UNUSED(rdata);
UNUSED(add);
UNUSED(arg);
return (ISC_R_SUCCESS);
}
+7 -3
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: a6_38.c,v 1.25 2000/04/27 00:02:46 tale Exp $ */
/* $Id: a6_38.c,v 1.26 2000/04/28 01:24:13 gson Exp $ */
/* draft-ietf-ipngwg-dns-lookups-03.txt */
@@ -295,6 +295,7 @@ tostruct_in_a6(dns_rdata_t *rdata, void *target, isc_mem_t *mctx)
REQUIRE(rdata->type == 38);
REQUIRE(rdata->rdclass == 1);
UNUSED(rdata);
UNUSED(target);
UNUSED(mctx);
@@ -306,6 +307,8 @@ freestruct_in_a6(void *source)
{
REQUIRE(source != NULL);
REQUIRE(ISC_FALSE); /*XXX*/
UNUSED(source);
}
static inline isc_result_t
@@ -315,8 +318,9 @@ additionaldata_in_a6(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
REQUIRE(rdata->type == 38);
REQUIRE(rdata->rdclass == 1);
(void)add;
(void)arg;
UNUSED(rdata);
UNUSED(add);
UNUSED(arg);
return (ISC_R_SUCCESS);
}
+7 -5
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: a_1.c,v 1.29 2000/04/27 23:57:56 gson Exp $ */
/* $Id: a_1.c,v 1.30 2000/04/28 01:24:13 gson Exp $ */
/* Reviewed: Thu Mar 16 16:52:50 PST 2000 by bwelling */
@@ -172,21 +172,23 @@ tostruct_in_a(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
static inline void
freestruct_in_a(void *source) {
UNUSED(source);
REQUIRE(source != NULL);
REQUIRE(ISC_FALSE); /*XXX*/
UNUSED(source);
}
static inline isc_result_t
additionaldata_in_a(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
void *arg)
{
UNUSED(add);
UNUSED(arg);
REQUIRE(rdata->type == 1);
REQUIRE(rdata->rdclass == 1);
UNUSED(rdata);
UNUSED(add);
UNUSED(arg);
return (ISC_R_SUCCESS);
}
+11 -7
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: aaaa_28.c,v 1.20 2000/04/27 00:02:48 tale Exp $ */
/* $Id: aaaa_28.c,v 1.21 2000/04/28 01:24:14 gson Exp $ */
/* Reviewed: Thu Mar 16 16:52:50 PST 2000 by bwelling */
@@ -152,12 +152,13 @@ fromstruct_in_aaaa(dns_rdataclass_t rdclass, dns_rdatatype_t type,
static inline isc_result_t
tostruct_in_aaaa(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
UNUSED(target);
UNUSED(mctx);
REQUIRE(rdata->type == 28);
REQUIRE(rdata->rdclass == 1);
UNUSED(rdata);
UNUSED(target);
UNUSED(mctx);
return (ISC_R_NOTIMPLEMENTED);
}
@@ -165,18 +166,21 @@ static inline void
freestruct_in_aaaa(void *source) {
REQUIRE(source != NULL);
REQUIRE(ISC_FALSE); /*XXX*/
UNUSED(source);
}
static inline isc_result_t
additionaldata_in_aaaa(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
void *arg)
{
UNUSED(add);
UNUSED(arg);
REQUIRE(rdata->type == 28);
REQUIRE(rdata->rdclass == 1);
UNUSED(rdata);
UNUSED(add);
UNUSED(arg);
return (ISC_R_SUCCESS);
}
+7 -4
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: naptr_35.c,v 1.21 2000/04/27 00:02:48 tale Exp $ */
/* $Id: naptr_35.c,v 1.22 2000/04/28 01:24:14 gson Exp $ */
/* Reviewed: Thu Mar 16 16:52:50 PST 2000 by bwelling */
@@ -263,12 +263,13 @@ fromstruct_in_naptr(dns_rdataclass_t rdclass, dns_rdatatype_t type,
static inline isc_result_t
tostruct_in_naptr(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
UNUSED(target);
UNUSED(mctx);
REQUIRE(rdata->type == 35);
REQUIRE(rdata->rdclass == 1);
UNUSED(rdata);
UNUSED(target);
UNUSED(mctx);
return (ISC_R_NOTIMPLEMENTED);
}
@@ -276,6 +277,8 @@ static inline void
freestruct_in_naptr(void *source) {
REQUIRE(source != NULL);
REQUIRE(ISC_FALSE);
UNUSED(source);
}
static inline isc_result_t
+5 -1
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: nsap-ptr_23.c,v 1.17 2000/04/27 00:02:49 tale Exp $ */
/* $Id: nsap-ptr_23.c,v 1.18 2000/04/28 01:24:15 gson Exp $ */
/* Reviewed: Fri Mar 17 10:16:02 PST 2000 by gson */
@@ -154,6 +154,7 @@ tostruct_in_nsap_ptr(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
REQUIRE(rdata->type == 23);
REQUIRE(rdata->rdclass == 1);
UNUSED(rdata);
UNUSED(target);
UNUSED(mctx);
@@ -164,6 +165,8 @@ static inline void
freestruct_in_nsap_ptr(void *source) {
REQUIRE(source != NULL);
REQUIRE(ISC_FALSE);
UNUSED(source);
}
static inline isc_result_t
@@ -173,6 +176,7 @@ additionaldata_in_nsap_ptr(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
REQUIRE(rdata->type == 23);
REQUIRE(rdata->rdclass == 1);
UNUSED(rdata);
UNUSED(add);
UNUSED(arg);
+5 -2
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: nsap_22.c,v 1.17 2000/04/27 00:02:49 tale Exp $ */
/* $Id: nsap_22.c,v 1.18 2000/04/28 01:24:15 gson Exp $ */
/* Reviewed: Fri Mar 17 10:41:07 PST 2000 by gson */
@@ -161,10 +161,10 @@ fromstruct_in_nsap(dns_rdataclass_t rdclass, dns_rdatatype_t type,
static inline isc_result_t
tostruct_in_nsap(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
REQUIRE(rdata->type == 22);
REQUIRE(rdata->rdclass == 1);
UNUSED(rdata);
UNUSED(target);
UNUSED(mctx);
@@ -175,6 +175,8 @@ static inline void
freestruct_in_nsap(void *source) {
REQUIRE(source != NULL);
REQUIRE(ISC_FALSE);
UNUSED(source);
}
static inline isc_result_t
@@ -184,6 +186,7 @@ additionaldata_in_nsap(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
REQUIRE(rdata->type == 22);
REQUIRE(rdata->rdclass == 1);
UNUSED(rdata);
UNUSED(add);
UNUSED(arg);
+2 -1
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: px_26.c,v 1.18 2000/04/27 00:02:50 tale Exp $ */
/* $Id: px_26.c,v 1.19 2000/04/28 01:24:16 gson Exp $ */
/* Reviewed: Mon Mar 20 10:44:27 PST 2000 */
@@ -280,6 +280,7 @@ additionaldata_in_px(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
REQUIRE(rdata->type == 26);
REQUIRE(rdata->rdclass == 1);
UNUSED(rdata);
UNUSED(add);
UNUSED(arg);
+7 -4
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: srv_33.c,v 1.19 2000/04/27 00:02:50 tale Exp $ */
/* $Id: srv_33.c,v 1.20 2000/04/28 01:24:16 gson Exp $ */
/* Reviewed: Fri Mar 17 13:01:00 PST 2000 by bwelling */
@@ -204,12 +204,13 @@ fromstruct_in_srv(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
static inline isc_result_t
tostruct_in_srv(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
UNUSED(target);
UNUSED(mctx);
REQUIRE(rdata->type == 33);
REQUIRE(rdata->rdclass == 1);
UNUSED(rdata);
UNUSED(target);
UNUSED(mctx);
return (ISC_R_NOTIMPLEMENTED);
}
@@ -217,6 +218,8 @@ static inline void
freestruct_in_srv(void *source) {
REQUIRE(source != NULL);
REQUIRE(ISC_FALSE); /*XXX*/
UNUSED(source);
}
static inline isc_result_t
+5 -1
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: wks_11.c,v 1.25 2000/04/27 00:02:51 tale Exp $ */
/* $Id: wks_11.c,v 1.26 2000/04/28 01:24:17 gson Exp $ */
/* Reviewed: Fri Mar 17 15:01:49 PST 2000 by explorer */
@@ -234,6 +234,7 @@ fromstruct_in_wks(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
static inline isc_result_t
tostruct_in_wks(dns_rdata_t *rdata, void *target, isc_mem_t *mctx)
{
UNUSED(rdata);
UNUSED(target);
UNUSED(mctx);
@@ -248,12 +249,15 @@ freestruct_in_wks(void *source)
{
REQUIRE(source != NULL);
REQUIRE(ISC_FALSE); /*XXX*/
UNUSED(source);
}
static inline isc_result_t
additionaldata_in_wks(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
void *arg)
{
UNUSED(rdata);
UNUSED(add);
UNUSED(arg);
+6
View File
@@ -314,6 +314,8 @@ resolver_shutdown(isc_task_t *task, isc_event_t *event) {
REQUIRE(DNS_VIEW_VALID(view));
REQUIRE(view->task == task);
UNUSED(task);
LOCK(&view->lock);
view->attributes |= DNS_VIEWATTR_RESSHUTDOWN;
@@ -336,6 +338,8 @@ adb_shutdown(isc_task_t *task, isc_event_t *event) {
REQUIRE(DNS_VIEW_VALID(view));
REQUIRE(view->task == task);
UNUSED(task);
LOCK(&view->lock);
view->attributes |= DNS_VIEWATTR_ADBSHUTDOWN;
@@ -358,6 +362,8 @@ req_shutdown(isc_task_t *task, isc_event_t *event) {
REQUIRE(DNS_VIEW_VALID(view));
REQUIRE(view->task == task);
UNUSED(task);
LOCK(&view->lock);
view->attributes |= DNS_VIEWATTR_REQSHUTDOWN;
+4
View File
@@ -77,6 +77,8 @@ isc_random_seed(isc_random_t *r, isc_uint32_t seed)
{
REQUIRE(ISC_RANDOM_VALID(r));
UNUSED(r);
initialize();
#if 0
@@ -96,6 +98,8 @@ isc_random_get(isc_random_t *r, isc_uint32_t *val)
REQUIRE(ISC_RANDOM_VALID(r));
REQUIRE(val != NULL);
UNUSED(r);
initialize();
#if 0
+2
View File
@@ -160,6 +160,8 @@ isc_rwlock_unlock(isc_rwlock_t *rwl, isc_rwlocktype_t type) {
LOCK(&rwl->lock);
REQUIRE(rwl->type == type);
UNUSED(type);
#ifdef ISC_RWLOCK_TRACE
print_lock("preunlock", rwl, type);
#endif
+7 -1
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: connection.c,v 1.20 2000/04/27 00:03:08 tale Exp $ */
/* $Id: connection.c,v 1.21 2000/04/28 01:24:18 gson Exp $ */
/* Principal Author: DCL */
@@ -249,6 +249,8 @@ connect_done(isc_task_t *task, isc_event_t *event) {
isc_socket_t *socket;
omapi_connection_t *connection;
UNUSED(task);
socket = event->ev_sender;
connection = event->ev_arg;
result = ((isc_socket_connev_t *)event)->result;
@@ -308,6 +310,8 @@ recv_done(isc_task_t *task, isc_event_t *event) {
omapi_connection_t *connection;
unsigned int bytes_read;
UNUSED(task);
socket = event->ev_sender;
connection = event->ev_arg;
socketevent = (isc_socketevent_t *)event;
@@ -394,6 +398,8 @@ send_done(isc_task_t *task, isc_event_t *event) {
omapi_connection_t *connection;
unsigned int sent_bytes;
UNUSED(task);
socket = event->ev_sender;
connection = event->ev_arg;
socketevent = (isc_socketevent_t *)event;