flags = flags & (IO_READ | IO_WRITE | IO_NBLOCK | IO_NEWSOCK);
if ((flags & (IO_READ | IO_WRITE)) == 0)
return NULL;
- iop = (struct iop *)malloc(sizeof(struct iop));
+ iop = malloc(sizeof(struct iop));
if (!iop)
return NULL;
iop->fd = fd;
#else
closesocket(iop->fd);
#endif
- free((s_char *)iop);
+ free(iop);
}
int