]> git.proxmox.com Git - qemu.git/commit
net/socket: Fix compiler warning (regression for MinGW)
authorStefan Weil <sw@weilnetz.de>
Sat, 22 Sep 2012 19:13:28 +0000 (21:13 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 12 Oct 2012 02:44:20 +0000 (21:44 -0500)
commitd4413913e1709bdbc892260124843e75e55d0eed
tree0e8f0c9f6338825d8db3a528117f991336e0f43a
parent61dea8e914440d02720a929ad78178ed821f9946
net/socket: Fix compiler warning (regression for MinGW)

Commit 213fd5087e2e4e2da10ad266df0ba950cf7618bf removed a type cast
which is needed for MinGW:

net/socket.c:136: warning:
 pointer targets in passing argument 2 of ‘sendto’ differ in signedness
/usr/lib/gcc/amd64-mingw32msvc/4.4.4/../../../../amd64-mingw32msvc/include/winsock2.h:1313: note:
 expected ‘const char *’ but argument is of type ‘const uint8_t *’

Add a 'qemu_sendto' macro which provides that type cast where needed
and use the new macro instead of 'sendto'.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
(cherry picked from commit 73062dfe6be0050dbd43ce3516e935ebb2545add)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
net/socket.c
qemu-common.h