2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

hide ((isc_event_t **) (void *)) cast using a macro, ISC_EVENT_PTR.

This commit is contained in:
Mark Andrews
2004-04-15 01:58:25 +00:00
parent 9a2127f833
commit 42b48d11ca
9 changed files with 36 additions and 34 deletions

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dispatch.c,v 1.116 2004/03/05 05:09:19 marka Exp $ */
/* $Id: dispatch.c,v 1.117 2004/04/15 01:58:24 marka Exp $ */
#include <config.h>
@@ -672,7 +672,7 @@ udp_recv(isc_task_t *task, isc_event_t *ev_in) {
rev, rev->buffer.base, rev->buffer.length,
resp->task);
resp->item_out = ISC_TRUE;
isc_task_send(resp->task, (isc_event_t **) (void *)&rev);
isc_task_send(resp->task, ISC_EVENT_PTR(&rev));
}
/*
@@ -856,7 +856,7 @@ tcp_recv(isc_task_t *task, isc_event_t *ev_in) {
rev, rev->buffer.base, rev->buffer.length,
resp->task);
resp->item_out = ISC_TRUE;
isc_task_send(resp->task, (isc_event_t **) (void *)&rev);
isc_task_send(resp->task, ISC_EVENT_PTR(&rev));
}
/*
@@ -2078,7 +2078,7 @@ do_cancel(dns_dispatch_t *disp, dns_dispentry_t *resp) {
"cancel: failsafe event %p -> task %p",
ev, resp->task);
resp->item_out = ISC_TRUE;
isc_task_send(resp->task, (isc_event_t **) (void *)&ev);
isc_task_send(resp->task, ISC_EVENT_PTR(&ev));
}
isc_socket_t *
@@ -2174,7 +2174,7 @@ dns_dispatch_importrecv(dns_dispatch_t *disp, isc_event_t *event) {
buf = allocate_udp_buffer(disp);
if (buf == NULL) {
isc_event_free((isc_event_t **) (void *)&newsevent);
isc_event_free(ISC_EVENT_PTR(&newsevent));
return;
}
memcpy(buf, sevent->region.base, sevent->n);
@@ -2187,7 +2187,7 @@ dns_dispatch_importrecv(dns_dispatch_t *disp, isc_event_t *event) {
newsevent->pktinfo = sevent->pktinfo;
newsevent->attributes = sevent->attributes;
isc_task_send(disp->task, (isc_event_t **) (void*)&newsevent);
isc_task_send(disp->task, ISC_EVENT_PTR(&newsevent));
}
#if 0