/*
- * $Id: async_io.cc,v 1.17 2002/11/10 02:29:58 hno Exp $
+ * $Id: async_io.cc,v 1.18 2002/11/10 03:40:34 hno Exp $
*
* DEBUG: section 32 Asynchronous Disk I/O
* AUTHOR: Pete Bentley <pete@demon.net>
ctrlp->done_handler_data = cbdataReference(callback_data);
ctrlp->operation = _AIO_READ;
ctrlp->len = len;
- ctrlp->bufp = squidaio_xmalloc(len);
+ ctrlp->bufp = (char *)squidaio_xmalloc(len);
if (offset >= 0)
seekmode = SEEK_SET;
else {
squidaiostate_t *aiostate = (squidaiostate_t *) sio->fsstate;
struct _queued_write *qw;
struct _queued_read *qr;
- while ((qw = linklistShift(&aiostate->pending_writes))) {
+ while ((qw = (struct _queued_write *)linklistShift(&aiostate->pending_writes))) {
if (qw->free_func)
qw->free_func(qw->buf);
memPoolFree(aufs_qwrite_pool, qw);
}
- while ((qr = linklistShift(&aiostate->pending_reads))) {
+ while ((qr = (struct _queued_read *)linklistShift(&aiostate->pending_reads))) {
cbdataReferenceDone(qr->callback_data);
memPoolFree(aufs_qread_pool, qr);
}