summaryrefslogtreecommitdiff
path: root/hw/virtio-console.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-13 16:31:01 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-13 16:31:01 +0000
commit8b226147f84be916eb1ca62223c21df3543d3746 (patch)
tree3c6d13cb27ef0fb8d2ff465ba31d3b4647ec1c27 /hw/virtio-console.c
parenta4a3a2c060a6ca4edd8f99c3d50ff4697a8b3d61 (diff)
downloadqemu-8b226147f84be916eb1ca62223c21df3543d3746.tar.gz
qemu-8b226147f84be916eb1ca62223c21df3543d3746.tar.bz2
qemu-8b226147f84be916eb1ca62223c21df3543d3746.zip
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
Diffstat (limited to 'hw/virtio-console.c')
-rw-r--r--hw/virtio-console.c6
1 files changed, 4 insertions, 2 deletions
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);
}