]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
C++ requires type casting
authorhno <>
Sun, 10 Nov 2002 10:40:34 +0000 (10:40 +0000)
committerhno <>
Sun, 10 Nov 2002 10:40:34 +0000 (10:40 +0000)
src/fs/aufs/async_io.cc
src/fs/aufs/store_io_aufs.cc

index 8704362e2fad5963bf09ace7b337fe38f85e1e1c..bd725b90b077ee4b8bc0a99984d1c127874a02d7 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $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>
@@ -228,7 +228,7 @@ aioRead(int fd, int offset, int len, AIOCB * callback, void *callback_data)
     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 {
index 9177576db84de20156e9b2319f98f2ba0d488cca..8a7beb66bb8c54b56133a75ca672d097780bde29 100644 (file)
@@ -453,12 +453,12 @@ storeAufsIOFreeEntry(void *siop)
     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);
     }