From 561687696f8a8764cabc64a482a2b72afc9d4a33 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Mon, 18 Jun 2012 23:39:30 +0300 Subject: network: Pass pointers of the right type to get/setsockopt/ioctlsocket on windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This avoids warnings. Signed-off-by: Martin Storsjö --- libavformat/os_support.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavformat/os_support.c') diff --git a/libavformat/os_support.c b/libavformat/os_support.c index 889a005eeb..4181350b00 100644 --- a/libavformat/os_support.c +++ b/libavformat/os_support.c @@ -252,7 +252,8 @@ const char *ff_gai_strerror(int ecode) int ff_socket_nonblock(int socket, int enable) { #if HAVE_WINSOCK2_H - return ioctlsocket(socket, FIONBIO, &enable); + u_long param = enable; + return ioctlsocket(socket, FIONBIO, ¶m); #else if (enable) return fcntl(socket, F_SETFL, fcntl(socket, F_GETFL) | O_NONBLOCK); -- cgit v1.2.3