summaryrefslogtreecommitdiff
path: root/src/xine-engine
diff options
context:
space:
mode:
authorFrantišek Dvořák <valtri@users.sourceforge.net>2004-09-02 19:56:40 +0000
committerFrantišek Dvořák <valtri@users.sourceforge.net>2004-09-02 19:56:40 +0000
commit73a6e175cd0f0a27364d3b56b6c9cb2eca16414c (patch)
treeb82b023389a653cd17f31ca42bc0d0b68598b0fb /src/xine-engine
parent67883645a55e1b9af703aa774a4193ea1a4f3fb7 (diff)
downloadxine-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')
-rw-r--r--src/xine-engine/io_helper.c4
-rw-r--r--src/xine-engine/osd.c2
2 files changed, 3 insertions, 3 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;
}
diff --git a/src/xine-engine/osd.c b/src/xine-engine/osd.c
index 6585a7bf2..8264d1cd8 100644
--- a/src/xine-engine/osd.c
+++ b/src/xine-engine/osd.c
@@ -921,9 +921,9 @@ static void osd_free_encoding(osd_object_t *osd) {
* "" ... locale encoding
*/
static int osd_set_encoding (osd_object_t *osd, const char *encoding) {
+#ifdef HAVE_ICONV
char *enc;
-#ifdef HAVE_ICONV
osd_free_encoding(osd);
lprintf("osd=%p, encoding=%s\n", osd, encoding ? (encoding[0] ? encoding : "locale") : "no conversion");