diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-09-12 12:36:09 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-09-12 12:36:09 +0000 |
commit | a2a45a26c94e5b3feacb24b8e63c56a7132122fc (patch) | |
tree | 76565e0ef8b9e5b3c035e358689db1b8bf9bb01c /block/vdi.c | |
parent | d741429a9b81fc62666e9be1ab4076e435195093 (diff) |
Fix signedness warnings on OpenSolaris
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'block/vdi.c')
-rw-r--r-- | block/vdi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/block/vdi.c b/block/vdi.c index c9c8890f59..f5e38dbd28 100644 --- a/block/vdi.c +++ b/block/vdi.c @@ -690,8 +690,8 @@ static void vdi_aio_write_cb(void *opaque, int ret) n_sectors = bmap_last - bmap_first + 1; offset = s->bmap_sector + bmap_first; acb->bmap_first = VDI_UNALLOCATED; - acb->hd_iov.iov_base = (uint8_t *)&s->bmap[0] + - bmap_first * SECTOR_SIZE; + acb->hd_iov.iov_base = (void *)((uint8_t *)&s->bmap[0] + + bmap_first * SECTOR_SIZE); acb->hd_iov.iov_len = n_sectors * SECTOR_SIZE; qemu_iovec_init_external(&acb->hd_qiov, &acb->hd_iov, 1); logout("will write %u block map sectors starting from entry %u\n", @@ -742,7 +742,7 @@ static void vdi_aio_write_cb(void *opaque, int ret) acb->bmap_last = block_index; memcpy(block + sector_in_block * SECTOR_SIZE, acb->buf, n_sectors * SECTOR_SIZE); - acb->hd_iov.iov_base = block; + acb->hd_iov.iov_base = (void *)block; acb->hd_iov.iov_len = s->block_size; qemu_iovec_init_external(&acb->hd_qiov, &acb->hd_iov, 1); acb->hd_aiocb = bdrv_aio_writev(s->hd, offset, @@ -755,7 +755,7 @@ static void vdi_aio_write_cb(void *opaque, int ret) uint64_t offset = s->header.offset_data / SECTOR_SIZE + (uint64_t)bmap_entry * s->block_sectors + sector_in_block; - acb->hd_iov.iov_base = acb->buf; + acb->hd_iov.iov_base = (void *)acb->buf; acb->hd_iov.iov_len = n_sectors * SECTOR_SIZE; qemu_iovec_init_external(&acb->hd_qiov, &acb->hd_iov, 1); acb->hd_aiocb = bdrv_aio_writev(s->hd, offset, &acb->hd_qiov, |