summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2008-03-28 23:03:17 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2008-03-28 23:03:17 +0000
commitd198fa0abb4d75a73a85760d9f122553e8364da6 (patch)
tree634ecd1e258d24d251430b483710521c4feff7d2
parentcd9e7e110acd2182eea32c052918587eaab7554c (diff)
downloadirssi-d198fa0abb4d75a73a85760d9f122553e8364da6.zip
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
-rw-r--r--src/core/network-openssl.c4
1 files changed, 1 insertions, 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)