mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-09 08:17:53 -06:00
Cast pointer arguments of get/setsockopt, send to void * to keep GCC
from producing a warning about pointer type mismatches with Winsock Signed-off-by: malc <av1474@comtv.ru>
This commit is contained in:
parent
9f8fd69460
commit
0a656f5f21
3 changed files with 4 additions and 3 deletions
|
@ -58,7 +58,7 @@ static void tcp_wait_for_connect(void *opaque)
|
|||
|
||||
dprintf("connect completed\n");
|
||||
do {
|
||||
ret = getsockopt(s->fd, SOL_SOCKET, SO_ERROR, &val, &valsize);
|
||||
ret = getsockopt(s->fd, SOL_SOCKET, SO_ERROR, (void *) &val, &valsize);
|
||||
} while (ret == -1 && (s->get_error(s)) == EINTR);
|
||||
|
||||
if (ret < 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue