From 8b226147f84be916eb1ca62223c21df3543d3746 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/virtio-console.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'hw/virtio-console.c') diff --git a/hw/virtio-console.c b/hw/virtio-console.c index 92455c850f..b263281d8f 100644 --- a/hw/virtio-console.c +++ b/hw/virtio-console.c @@ -38,8 +38,10 @@ static void virtio_console_handle_output(VirtIODevice *vdev, VirtQueue *vq) ssize_t len = 0; int d; - for (d=0; d < elem.out_num; d++) - len += qemu_chr_write(s->chr, elem.out_sg[d].iov_base,elem.out_sg[d].iov_len); + for (d = 0; d < elem.out_num; d++) { + len += qemu_chr_write(s->chr, (uint8_t *)elem.out_sg[d].iov_base, + elem.out_sg[d].iov_len); + } virtqueue_push(vq, &elem, len); virtio_notify(vdev, vq); } -- cgit v1.2.3