diff options
author | Stefan Weil <sw@weilnetz.de> | 2013-03-08 19:58:32 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2013-03-22 13:14:48 +0100 |
commit | 513737b82a7fd9fcf49b82872ff75134746041e7 (patch) | |
tree | d29c26d1d837cef16d94ab8f5a5b8e18e78dad92 /misc.c | |
parent | 2f52555e93636116c41de9732e114b17f82b8ee9 (diff) | |
download | slirp-513737b82a7fd9fcf49b82872ff75134746041e7.zip slirp-513737b82a7fd9fcf49b82872ff75134746041e7.tar.gz slirp-513737b82a7fd9fcf49b82872ff75134746041e7.tar.bz2 |
MinGW: Replace setsockopt by qemu_setsocketopt
Instead of adding missing type casts which are needed by MinGW for the
4th argument, the patch uses qemu_setsockopt which was invented for this
purpose.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -207,9 +207,9 @@ int fork_exec(struct socket *so, const char *ex, int do_pty) } while (so->s < 0 && errno == EINTR); closesocket(s); opt = 1; - setsockopt(so->s, SOL_SOCKET, SO_REUSEADDR, (char *)&opt, sizeof(int)); + qemu_setsockopt(so->s, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(int)); opt = 1; - setsockopt(so->s, SOL_SOCKET, SO_OOBINLINE, (char *)&opt, sizeof(int)); + qemu_setsockopt(so->s, SOL_SOCKET, SO_OOBINLINE, &opt, sizeof(int)); socket_set_nonblock(so->s); /* Append the telnet options now */ |