From e3f5ec2b5e92706e3b807059f79b1fb5d936e567 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Mon, 18 May 2009 13:33:03 +0100 Subject: net: pass VLANClientState* as first arg to receive handlers Give static type checking a chance to catch errors. Signed-off-by: Mark McLoughlin --- net.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'net.h') diff --git a/net.h b/net.h index 4d204e06e6..a28827c4a7 100644 --- a/net.h +++ b/net.h @@ -7,9 +7,9 @@ typedef struct VLANClientState VLANClientState; -typedef int (NetCanReceive)(void *); -typedef void (NetReceive)(void *, const uint8_t *, size_t); -typedef ssize_t (NetReceiveIOV)(void *, const struct iovec *, int); +typedef int (NetCanReceive)(VLANClientState *); +typedef void (NetReceive)(VLANClientState *, const uint8_t *, size_t); +typedef ssize_t (NetReceiveIOV)(VLANClientState *, const struct iovec *, int); typedef void (NetCleanup) (VLANClientState *); typedef void (LinkStatusChanged)(VLANClientState *); -- cgit v1.2.3