1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

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
This commit is contained in:
Emanuele Giaquinta 2008-03-28 23:03:17 +00:00 committed by exg
parent cd9e7e110a
commit d198fa0abb

View File

@ -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) static GIOStatus irssi_ssl_seek(GIOChannel *handle, gint64 offset, GSeekType type, GError **gerr)
{ {
GIOSSLChannel *chan = (GIOSSLChannel *)handle; GIOSSLChannel *chan = (GIOSSLChannel *)handle;
GIOError e; return g_io_channel_seek_position(chan->giochan, offset, type, NULL);
e = g_io_channel_seek(chan->giochan, offset, type);
return (e == G_IO_ERROR_NONE) ? G_IO_STATUS_NORMAL : G_IO_STATUS_ERROR;
} }
static GIOStatus irssi_ssl_close(GIOChannel *handle, GError **gerr) static GIOStatus irssi_ssl_close(GIOChannel *handle, GError **gerr)