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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user