From 73a6e175cd0f0a27364d3b56b6c9cb2eca16414c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Thu, 2 Sep 2004 19:56:40 +0000 Subject: Warnings on WIN32. Compilation fix for CygWin. CVS patchset: 6932 CVS date: 2004/09/02 19:56:40 --- src/xine-engine/io_helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/xine-engine/io_helper.c') diff --git a/src/xine-engine/io_helper.c b/src/xine-engine/io_helper.c index 78e68d815..382874124 100644 --- a/src/xine-engine/io_helper.c +++ b/src/xine-engine/io_helper.c @@ -73,7 +73,7 @@ static int _x_io_tcp_connect_ipv4(xine_stream_t *stream, const char *host, int p } #else { - int non_block = 1; + unsigned long non_block = 1; int rc; rc = ioctlsocket(s, FIONBIO, &non_block); @@ -249,7 +249,7 @@ int _x_io_tcp_connect_finish(xine_stream_t *stream, int fd, int timeout_msec) { socklen_t len = sizeof(int); int err; - if ((getsockopt(fd, SOL_SOCKET, SO_ERROR, &err, &len)) == -1) { + if ((getsockopt(fd, SOL_SOCKET, SO_ERROR, (void *)&err, &len)) == -1) { _x_message(stream, XINE_MSG_CONNECTION_REFUSED, _("failed to get status of socket"), strerror(errno), NULL); return XIO_ERROR; } -- cgit v1.2.3