summaryrefslogtreecommitdiffstats
path: root/hw/mcf_fec.c
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2009-05-18 13:33:03 +0100
committerMark McLoughlin <markmc@redhat.com>2009-06-09 11:38:49 +0100
commite3f5ec2b5e92706e3b807059f79b1fb5d936e567 (patch)
treee49989391834350755b1138d07ac3e464a5dbd6c /hw/mcf_fec.c
parentcda9046ba7dbba45f3016e5d60caffa2d72960fa (diff)
downloadhqemu-e3f5ec2b5e92706e3b807059f79b1fb5d936e567.zip
hqemu-e3f5ec2b5e92706e3b807059f79b1fb5d936e567.tar.gz
net: pass VLANClientState* as first arg to receive handlers
Give static type checking a chance to catch errors. Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Diffstat (limited to 'hw/mcf_fec.c')
-rw-r--r--hw/mcf_fec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/mcf_fec.c b/hw/mcf_fec.c
index 0b0f17a..d2534d0 100644
--- a/hw/mcf_fec.c
+++ b/hw/mcf_fec.c
@@ -347,15 +347,15 @@ static void mcf_fec_write(void *opaque, target_phys_addr_t addr, uint32_t value)
mcf_fec_update(s);
}
-static int mcf_fec_can_receive(void *opaque)
+static int mcf_fec_can_receive(VLANClientState *vc)
{
- mcf_fec_state *s = (mcf_fec_state *)opaque;
+ mcf_fec_state *s = vc->opaque;
return s->rx_enabled;
}
-static void mcf_fec_receive(void *opaque, const uint8_t *buf, size_t size)
+static void mcf_fec_receive(VLANClientState *vc, const uint8_t *buf, size_t size)
{
- mcf_fec_state *s = (mcf_fec_state *)opaque;
+ mcf_fec_state *s = vc->opaque;
mcf_fec_bd bd;
uint32_t flags = 0;
uint32_t addr;
OpenPOWER on IntegriCloud