summaryrefslogtreecommitdiff
path: root/src/core/net-nonblock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/net-nonblock.c')
-rw-r--r--src/core/net-nonblock.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/net-nonblock.c b/src/core/net-nonblock.c
index f029b14d..2b38e79b 100644
--- a/src/core/net-nonblock.c
+++ b/src/core/net-nonblock.c
@@ -40,7 +40,8 @@ typedef struct {
static int g_io_channel_write_block(GIOChannel *channel, void *data, int len)
{
- int err, ret, sent;
+ unsigned int ret;
+ int err, sent;
sent = 0;
do {
@@ -55,7 +56,8 @@ 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;
- int err, ret, received;
+ unsigned int ret;
+ int err, received;
maxwait = time(NULL)+2;
received = 0;