diff options
author | Amit Shah <amit.shah@redhat.com> | 2012-09-25 00:05:14 +0530 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2012-09-28 12:16:27 +0200 |
commit | 385ce95d9d060f20870402c8b2b503d0b6ab8af0 (patch) | |
tree | ccdef22713294acad413ee03fcd401daebef96f2 /hw | |
parent | 844b5cea8ea6cbe964670a26d1b34037067569df (diff) | |
download | hqemu-385ce95d9d060f20870402c8b2b503d0b6ab8af0.zip hqemu-385ce95d9d060f20870402c8b2b503d0b6ab8af0.tar.gz |
virtio: use unsigned int for counting bytes in vq
The virtqueue_avail_bytes() function counts bytes in an int. Use an
unsigned int instead.
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/virtio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/virtio.c b/hw/virtio.c index b5764bb..cfad363 100644 --- a/hw/virtio.c +++ b/hw/virtio.c @@ -338,7 +338,7 @@ static unsigned virtqueue_next_desc(target_phys_addr_t desc_pa, int virtqueue_avail_bytes(VirtQueue *vq, int in_bytes, int out_bytes) { unsigned int idx; - int total_bufs, in_total, out_total; + unsigned int total_bufs, in_total, out_total; idx = vq->last_avail_idx; |