From d198fa0abb4d75a73a85760d9f122553e8364da6 Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Fri, 28 Mar 2008 23:03:17 +0000 Subject: [PATCH] Use g_io_channel_seek_position in irssi_ssl_seek. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4782 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/network-openssl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/network-openssl.c b/src/core/network-openssl.c index 2ed1618d..33e7bfb6 100644 --- a/src/core/network-openssl.c +++ b/src/core/network-openssl.c @@ -156,9 +156,7 @@ 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; - GIOError e; - e = g_io_channel_seek(chan->giochan, offset, type); - return (e == G_IO_ERROR_NONE) ? G_IO_STATUS_NORMAL : G_IO_STATUS_ERROR; + return g_io_channel_seek_position(chan->giochan, offset, type, NULL); } static GIOStatus irssi_ssl_close(GIOChannel *handle, GError **gerr)