* [Qemu-devel] [6075] Use saner types for virtio-net
@ 2008-12-17 19:45 Anthony Liguori
0 siblings, 0 replies; only message in thread
From: Anthony Liguori @ 2008-12-17 19:45 UTC (permalink / raw)
To: qemu-devel
Revision: 6075
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6075
Author: aliguori
Date: 2008-12-17 19:45:40 +0000 (Wed, 17 Dec 2008)
Log Message:
-----------
Use saner types for virtio-net
This was spotted by malc
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Modified Paths:
--------------
trunk/hw/virtio-net.c
Modified: trunk/hw/virtio-net.c
===================================================================
--- trunk/hw/virtio-net.c 2008-12-17 19:17:17 UTC (rev 6074)
+++ trunk/hw/virtio-net.c 2008-12-17 19:45:40 UTC (rev 6075)
@@ -106,7 +106,7 @@
}
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 @@
{
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-12-17 19:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-17 19:45 [Qemu-devel] [6075] Use saner types for virtio-net Anthony Liguori
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).