UNFLATTEN(dt);
- if(old->eventf && (*old->eventf)(dt,DT_DISC,(void*)disc,old) < 0)
+ if(old->eventf && (*old->eventf)(dt, DT_DISC, disc, old) < 0)
return NULL;
dt->disc = disc;
return oldmeth;
if(disc->eventf &&
- (*disc->eventf)(dt,DT_METH,(void*)meth,disc) < 0)
+ (*disc->eventf)(dt, DT_METH, meth, disc) < 0)
return NULL;
dt->data->minp = 0;
if(disc->eventf)
{ /* if shared/persistent dictionary, get existing data */
data = NULL;
- if((e = (*disc->eventf)(dt,DT_OPEN,(void*)(&data),disc)) < 0)
+ if((e = (*disc->eventf)(dt, DT_OPEN, &data, disc)) < 0)
goto err_open;
else if(e > 0)
{ if(data)
dt->meth = meth;
if(disc->eventf)
- (*disc->eventf)(dt, DT_ENDOPEN, (void*)dt, disc);
+ (*disc->eventf)(dt, DT_ENDOPEN, dt, disc);
return dt;
}