diff options
-rw-r--r-- | src/core/net-nonblock.c | 4 | ||||
-rw-r--r-- | src/core/network.c | 4 |
2 files changed, 4 insertions, 4 deletions
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); |