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

use ISC_EVENT_INIT

This commit is contained in:
Bob Halley
1999-06-15 23:17:24 +00:00
parent 72a8e39155
commit 9a7d5570ae

View File

@@ -50,15 +50,8 @@ isc_event_allocate(isc_mem_t *mctx, void *sender, isc_eventtype_t type,
event = isc_mem_get(mctx, size);
if (event == NULL)
return (NULL);
event->size = size;
event->attributes = 0;
event->type = type;
event->sender = sender;
event->action = action;
event->arg = arg;
event->destroy = destroy;
event->destroy_arg = mctx;
ISC_LINK_INIT(event, link);
ISC_EVENT_INIT(event, size, 0, 0, type, action, arg, sender,
destroy, mctx);
return (event);
}