From f34b9bba3b5c04c1831b34ba30e0ad9832b53215 Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Sun, 30 Mar 2008 14:05:39 +0000 Subject: [PATCH] Make irssi_ssl_{seek,close} call giochan->funcs->io_{seek,close} rather than g_io_channel_{seek,close}. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4791 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/network-openssl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/network-openssl.c b/src/core/network-openssl.c index 33e7bfb6..6d1e940f 100644 --- a/src/core/network-openssl.c +++ b/src/core/network-openssl.c @@ -156,15 +156,15 @@ static GIOStatus irssi_ssl_write(GIOChannel *handle, const gchar *buf, gsize len static GIOStatus irssi_ssl_seek(GIOChannel *handle, gint64 offset, GSeekType type, GError **gerr) { GIOSSLChannel *chan = (GIOSSLChannel *)handle; - return g_io_channel_seek_position(chan->giochan, offset, type, NULL); + + return chan->giochan->funcs->io_seek(handle, offset, type, gerr); } static GIOStatus irssi_ssl_close(GIOChannel *handle, GError **gerr) { GIOSSLChannel *chan = (GIOSSLChannel *)handle; - g_io_channel_close(chan->giochan); - return G_IO_STATUS_NORMAL; + return chan->giochan->funcs->io_close(handle, gerr); } static GSource *irssi_ssl_create_watch(GIOChannel *handle, GIOCondition cond)