diff options
author | Mark McLoughlin <markmc@redhat.com> | 2009-05-18 13:13:16 +0100 |
---|---|---|
committer | Mark McLoughlin <markmc@redhat.com> | 2009-06-09 11:38:49 +0100 |
commit | cda9046ba7dbba45f3016e5d60caffa2d72960fa (patch) | |
tree | da29fa06d782170b8214be44382549735eafa3b3 /hw/e1000.c | |
parent | 463af5349a787160642f023dad10eaf0cb419fb7 (diff) | |
download | qemu-cda9046ba7dbba45f3016e5d60caffa2d72960fa.tar.gz qemu-cda9046ba7dbba45f3016e5d60caffa2d72960fa.tar.bz2 qemu-cda9046ba7dbba45f3016e5d60caffa2d72960fa.zip |
net: re-name vc->fd_read() to vc->receive()
VLANClientState's fd_read() handler doesn't read from file
descriptors, it adds a buffer to the client's receive queue.
Re-name the handlers to make things a little less confusing.
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Diffstat (limited to 'hw/e1000.c')
-rw-r--r-- | hw/e1000.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/e1000.c b/hw/e1000.c index 01ee57f031..20544d2943 100644 --- a/hw/e1000.c +++ b/hw/e1000.c @@ -600,7 +600,7 @@ e1000_can_receive(void *opaque) } static void -e1000_receive(void *opaque, const uint8_t *buf, int size) +e1000_receive(void *opaque, const uint8_t *buf, size_t size) { E1000State *s = opaque; struct e1000_rx_desc desc; @@ -614,8 +614,8 @@ e1000_receive(void *opaque, const uint8_t *buf, int size) return; if (size > s->rxbuf_size) { - DBGOUT(RX, "packet too large for buffers (%d > %d)\n", size, - s->rxbuf_size); + DBGOUT(RX, "packet too large for buffers (%lu > %d)\n", + (unsigned long)size, s->rxbuf_size); return; } |