GNOME Bugzilla – Bug 57692
g_io_channel_win32_no_seek() no longer needed
Last modified: 2011-02-18 15:55:24 UTC
The function g_io_channel_win32_no_seek() should no longer be called by the GIOChannel API functions, and can probably be removed at some point after testing has confirmed this
AFAICS g_io_channel_seek () does only check the is_seekable flag with g_return_if_fail() so doesn't your suggestion mean to call a function via a NULL pointer ? Same for g_io_channel_seek_position (). Or am I missing something ?
The function g_io_channel_win32_no_seek() only appears in the GIOFuncs structures for the socket and message channels. For these channels, is_seekable is always false, so g_io_channel_win32_no_seek() should never be called (if you look at the function body, it consists entirely of g_assert(FALSE) and a dummy return value). If we're not hitting the assert, the function is successfully not being called, and can be removed. If you're concerned about safety, we could stick asserts before the two calls to io_seek() in giochannel.c.
Moving open 2.0.0 Win32 bugs to 2.0.1 milestone.
Moving 2.0.1 Win32 bugs to 2.0.2 milestone.
Fixed in HEAD.