From 9ae4779c876360f574498fa567319301faa76fbf Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 6 Oct 2003 23:53:51 +0000 Subject: 64bit fixes by Stefan Fent git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3129 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/net-nonblock.c | 4 ++-- src/core/network.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/core') diff --git a/src/core/net-nonblock.c b/src/core/net-nonblock.c index ce6be49a..97d3bccd 100644 --- a/src/core/net-nonblock.c +++ b/src/core/net-nonblock.c @@ -40,7 +40,7 @@ typedef struct { static int g_io_channel_write_block(GIOChannel *channel, void *data, int len) { - unsigned int ret; + unsigned long ret; int err, sent; sent = 0; @@ -56,7 +56,7 @@ static int g_io_channel_write_block(GIOChannel *channel, void *data, int len) static int g_io_channel_read_block(GIOChannel *channel, void *data, int len) { time_t maxwait; - unsigned int ret; + unsigned long ret; int err, received; maxwait = time(NULL)+2; diff --git a/src/core/network.c b/src/core/network.c index 71a5dcb1..92f27e7e 100644 --- a/src/core/network.c +++ b/src/core/network.c @@ -362,7 +362,7 @@ GIOChannel *net_accept(GIOChannel *handle, IPADDR *addr, int *port) /* Read data from socket, return number of bytes read, -1 = error */ int net_receive(GIOChannel *handle, char *buf, int len) { - unsigned int ret; + unsigned long ret; int err; g_return_val_if_fail(handle != NULL, -1); @@ -381,7 +381,7 @@ int net_receive(GIOChannel *handle, char *buf, int len) /* Transmit data, return number of bytes sent, -1 = error */ int net_transmit(GIOChannel *handle, const char *data, int len) { - unsigned int ret; + unsigned long ret; int err; g_return_val_if_fail(handle != NULL, -1); -- cgit v1.2.3