Wrap recv to avoid warnings
commit00aa0040e8b8ec45a75be4e8926a84b82cc75838
authorBlue Swirl <blauwirbel@gmail.com>
Sat, 23 Jul 2011 20:04:29 +0000 (23 20:04 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Mon, 25 Jul 2011 14:38:56 +0000 (25 14:38 +0000)
tree2bd4340f2a9e31edb18910eaef0ccf1f694bcacb
parentaad04cd024f0c59f0b96f032cde2e24eb3abba6d
Wrap recv to avoid warnings

Avoid warnings like these by wrapping recv():
  CC    slirp/ip_icmp.o
/src/qemu/slirp/ip_icmp.c: In function 'icmp_receive':
/src/qemu/slirp/ip_icmp.c:418:5: error: passing argument 2 of 'recv' from incompatible pointer type [-Werror]
/usr/local/lib/gcc/i686-mingw32msvc/4.6.0/../../../../i686-mingw32msvc/include/winsock2.h:547:32: note: expected 'char *' but argument is of type 'struct icmp *'

Remove also casts used to avoid warnings.

Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
13 files changed:
block/sheepdog.c
gdbstub.c
linux-user/syscall.c
nbd.c
net/socket.c
qemu-char.c
qemu-common.h
savevm.c
slirp/ip_icmp.c
slirp/slirp.c
slirp/socket.c
ui/vnc-tls.c
ui/vnc.c