From 3f4cb3d37fb74db3580029624c8acd83dd5f4787 Mon Sep 17 00:00:00 2001 From: blueswir1 Date: Mon, 13 Apr 2009 16:31:01 +0000 Subject: Fix OpenSolaris gcc4 warnings: iovec type mismatches, missing 'static' git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7103 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/ide.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/ide.c') diff --git a/hw/ide.c b/hw/ide.c index f187546..fc70f36 100644 --- a/hw/ide.c +++ b/hw/ide.c @@ -1469,7 +1469,7 @@ static void ide_atapi_cmd_read_dma_cb(void *opaque, int ret) #ifdef DEBUG_AIO printf("aio_read_cd: lba=%u n=%d\n", s->lba, n); #endif - bm->iov.iov_base = s->io_buffer + data_offset; + bm->iov.iov_base = (void *)(s->io_buffer + data_offset); bm->iov.iov_len = n * 4 * 512; qemu_iovec_init_external(&bm->qiov, &bm->iov, 1); bm->aiocb = bdrv_aio_readv(s->bs, (int64_t)s->lba << 2, &bm->qiov, -- cgit v1.1