diff options
author | František Dvořák <valtri@users.sourceforge.net> | 2004-09-02 19:56:40 +0000 |
---|---|---|
committer | František Dvořák <valtri@users.sourceforge.net> | 2004-09-02 19:56:40 +0000 |
commit | 73a6e175cd0f0a27364d3b56b6c9cb2eca16414c (patch) | |
tree | b82b023389a653cd17f31ca42bc0d0b68598b0fb /src/xine-engine/io_helper.c | |
parent | 67883645a55e1b9af703aa774a4193ea1a4f3fb7 (diff) | |
download | xine-lib-73a6e175cd0f0a27364d3b56b6c9cb2eca16414c.tar.gz xine-lib-73a6e175cd0f0a27364d3b56b6c9cb2eca16414c.tar.bz2 |
Warnings on WIN32.
Compilation fix for CygWin.
CVS patchset: 6932
CVS date: 2004/09/02 19:56:40
Diffstat (limited to 'src/xine-engine/io_helper.c')
-rw-r--r-- | src/xine-engine/io_helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |