summaryrefslogtreecommitdiff
path: root/src/irc/dcc
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-11-23 21:40:07 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-11-23 21:40:07 +0000
commit8ce36c05eab6c1787c4e62052fb8d2ba6369cbe8 (patch)
tree52324a388e270f22cef46fb5a5fcdcc1c3d71ac8 /src/irc/dcc
parent8fb2249f0742cd391796b2a07c6611a696f7681a (diff)
downloadirssi-8ce36c05eab6c1787c4e62052fb8d2ba6369cbe8.zip
several fixes to make irssi compile without warnings with MIPSpro
also fixed ctcp_queue_clean() - it might have crashed sometimes.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@859 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/dcc')
-rw-r--r--src/irc/dcc/dcc-chat.c3
-rw-r--r--src/irc/dcc/dcc-files.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/irc/dcc/dcc-chat.c b/src/irc/dcc/dcc-chat.c
index 7a331388..f1f82647 100644
--- a/src/irc/dcc/dcc-chat.c
+++ b/src/irc/dcc/dcc-chat.c
@@ -251,7 +251,8 @@ static void dcc_chat_connect(DCC_REC *dcc)
dcc->handle = net_connect_ip(&dcc->addr, dcc->port,
source_host_ok ? source_host_ip : NULL);
if (dcc->handle != -1) {
- dcc->tagconn = g_input_add(dcc->handle, G_INPUT_WRITE|G_INPUT_READ,
+ dcc->tagconn = g_input_add(dcc->handle,
+ (GInputCondition) (G_INPUT_WRITE|G_INPUT_READ),
(GInputFunction) sig_chat_connected, dcc);
} else {
/* error connecting */
diff --git a/src/irc/dcc/dcc-files.c b/src/irc/dcc/dcc-files.c
index 4eb3c5f3..166734d5 100644
--- a/src/irc/dcc/dcc-files.c
+++ b/src/irc/dcc/dcc-files.c
@@ -198,7 +198,8 @@ static void dcc_get_connect(DCC_REC *dcc)
dcc->handle = net_connect_ip(&dcc->addr, dcc->port,
source_host_ok ? source_host_ip : NULL);
if (dcc->handle != -1) {
- dcc->tagconn = g_input_add(dcc->handle, G_INPUT_WRITE|G_INPUT_READ,
+ dcc->tagconn = g_input_add(dcc->handle,
+ (GInputCondition) (G_INPUT_WRITE|G_INPUT_READ),
(GInputFunction) sig_dccget_connected, dcc);
} else {
/* error connecting */