summaryrefslogtreecommitdiff
path: root/libavformat/os_support.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2012-06-18 23:39:30 +0300
committerMartin Storsjö <martin@martin.st>2012-06-19 20:22:47 +0300
commit561687696f8a8764cabc64a482a2b72afc9d4a33 (patch)
tree8cf254cdfa2bac76ce89ef7f6105e43eebf24369 /libavformat/os_support.c
parent9d811fd80fbd94a0e44d87cf8ccdab96c2a4af04 (diff)
network: Pass pointers of the right type to get/setsockopt/ioctlsocket on windows
This avoids warnings. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/os_support.c')
-rw-r--r--libavformat/os_support.c3
1 files changed, 2 insertions, 1 deletions
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, &param);
#else
if (enable)
return fcntl(socket, F_SETFL, fcntl(socket, F_GETFL) | O_NONBLOCK);