aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-17 19:45:40 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-17 19:45:40 +0000
commit4689f4b3a54fb79423e444b5164afe27fbb8ab74 (patch)
tree15750078527c6b4474769dafdb63ce491cee9947 /hw
parentb535b7b2f73803146fcd442c7df8f90d48b1967f (diff)
Use saner types for virtio-net
This was spotted by malc Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6075 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw')
-rw-r--r--hw/virtio-net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/virtio-net.c b/hw/virtio-net.c
index c1269937a3..1f45b2d2a4 100644
--- a/hw/virtio-net.c
+++ b/hw/virtio-net.c
@@ -106,7 +106,7 @@ static int iov_fill(struct iovec *iov, int iovcnt, const void *buf, int count)
}
static int receive_header(VirtIONet *n, struct iovec *iov, int iovcnt,
- const void *buf, int size, int hdr_len)
+ const void *buf, size_t size, size_t hdr_len)
{
struct virtio_net_hdr *hdr = iov[0].iov_base;
int offset = 0;
@@ -127,7 +127,7 @@ static void virtio_net_receive(void *opaque, const uint8_t *buf, int size)
{
VirtIONet *n = opaque;
struct virtio_net_hdr_mrg_rxbuf *mhdr = NULL;
- int hdr_len, offset, i;
+ size_t hdr_len, offset, i;
if (!do_virtio_net_can_receive(n, size))
return;