aboutsummaryrefslogtreecommitdiffstats
path: root/irc.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2006-05-29 01:07:00 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2006-05-29 01:07:00 +0200
commit79b6213c1fa2ffaa102365515551e9f0ea9fdc1a (patch)
treec0017357f7f97d1ee6e920e69f331165ac965001 /irc.c
parent42616d147d9b6bfb5d09ea6dc237605917765853 (diff)
parent574af7e01a0cc738b4bbe7e903572943a85b9691 (diff)
Dropping GLib <2 support.
Diffstat (limited to 'irc.c')
-rw-r--r--irc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/irc.c b/irc.c
index fb85de62..db9f7aad 100644
--- a/irc.c
+++ b/irc.c
@@ -54,13 +54,9 @@ irc_t *irc_new( int fd )
irc->fd = fd;
irc->io_channel = g_io_channel_unix_new( fd );
-#ifdef GLIB2
g_io_channel_set_encoding (irc->io_channel, NULL, NULL);
g_io_channel_set_buffered (irc->io_channel, FALSE);
g_io_channel_set_flags( irc->io_channel, G_IO_FLAG_NONBLOCK, NULL );
-#else
- fcntl( irc->fd, F_SETFL, O_NONBLOCK);
-#endif
irc->r_watch_source_id = g_io_add_watch( irc->io_channel, G_IO_IN | G_IO_ERR | G_IO_HUP, bitlbee_io_current_client_read, irc );
irc->status = USTATUS_OFFLINE;