summaryrefslogtreecommitdiff
path: root/src/core/net-nonblock.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-01-15 23:36:11 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-01-15 23:36:11 +0000
commit0d62878d6ec1a3f07f31c2212bd3608bfc602cab (patch)
tree624f61f4ddbf6829883beb109fd594ca061b3c5a /src/core/net-nonblock.c
parentae2bb54a42c9efc9050d930d1039f1cf5ee7a72e (diff)
downloadirssi-0d62878d6ec1a3f07f31c2212bd3608bfc602cab.zip
Fixed some signedness warnings and memdebug.h should compile now fine
with -ansi. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1124 dbcabf3a-b0e7-0310-adc4-f8d773084564
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;