summaryrefslogtreecommitdiff
path: root/lib/gibber
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2009-10-28 15:48:38 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2010-02-22 14:12:50 +0000
commitbdc2d946436da84ac114174ab1396c159306aea1 (patch)
treefe0d4d3956af092b5d23d6e7786551a38c7649ee /lib/gibber
parent1417bcbe96d35aa601979409c302fd236f959e62 (diff)
gibber-listener: add_listener: use gibber_io_channel_new_from_socket
We're listening on IPv4, IPv6 or Unix here, so we know it's a socket, not some other sort of fd.
Diffstat (limited to 'lib/gibber')
-rw-r--r--lib/gibber/gibber-listener.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gibber/gibber-listener.c b/lib/gibber/gibber-listener.c
index 95f7f1380..f23c4e786 100644
--- a/lib/gibber/gibber-listener.c
+++ b/lib/gibber/gibber-listener.c
@@ -339,7 +339,7 @@ add_listener (GibberListener *self, int family, int type, int protocol,
l = g_slice_new (Listener);
- l->listener = g_io_channel_unix_new (fd);
+ l->listener = gibber_io_channel_new_from_socket (fd);
g_io_channel_set_close_on_unref (l->listener, TRUE);
l->io_watch_in = g_io_add_watch (l->listener, G_IO_IN,
listener_io_in_cb, self);