These implicitly coerce to void* so no cast is needed.
if(!disc->memoryf)
goto err_open;
- free((void*)dt);
+ free(dt);
if(!(dt = (*disc->memoryf)(0, 0, sizeof(Dt_t), disc)) )
return NIL(Dt_t*);
dt->searchf = NIL(Dtsearch_f);
/* allocate sharable data */
if(!(data = (Dtdata_t*)(dt->memoryf)(dt,NIL(void*),sizeof(Dtdata_t),disc)) )
{ err_open:
- free((void*)dt);
+ free(dt);
return NIL(Dt_t*);
}
tempa->last->next = tempa->next;
tempa->next->last = tempa->last;
}
- free((char *) tempa);
+ free(tempa);
all.number--;
templ->active = 0;
break; /* end of case 1 */
memcpy((void *) array, (void *) p->sf,
p->n_sf * sizeof(Sfio_t *));
if (p->sf != p->array)
- free((void *) p->sf);
+ free(p->sf);
p->sf = array;
p->s_sf = n;
if (type == SF_WRITE) { /* save unread data */
p->ndata = f->endb - f->next;
if (p->ndata > p->size) {
- free((char *) p->rdata);
+ free(p->rdata);
if ((p->rdata = malloc(p->ndata)))
p->size = p->ndata;
else {
if (f->data
&& ((flags & SF_STRING) || size != (size_t) SF_UNBOUND)) {
if (sflags & SF_MALLOC)
- free((void *) f->data);
+ free(f->data);
f->data = NIL(uchar *);
}
if (!f->data)
f->flags = (unsigned short)((f->flags & ~SF_MALLOC) | sf_malloc);
if (obuf && obuf != f->data && osize > 0 && (oflags & SF_MALLOC)) {
- free((void *) obuf);
+ free(obuf);
obuf = NIL(uchar *);
}
tempa->last->next = tempa->next;
tempa->next->last = tempa->last;
}
- free((char *) tempa);
+ free(tempa);
all.number--;
templ->active = NIL;
break; /* end of case 1 */
Pobsclose(vgp->vc);
free(vgp->poly); /* ### */
Tcl_DeleteCommand(interp, argv[0]);
- free((char *) tclhandleFree(vgpaneTable, argv[0]));
+ free(tclhandleFree(vgpaneTable, argv[0]));
return TCL_OK;
} else if ((c == 'f') && (strncmp(argv[1], "find", length) == 0)) {