X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5ff8699684c32129db801ba4edbde75c98aa23d5..a679468530239a32cf7efa0d566d5c03a9c90c3f:/src/gtk1/gsockgtk.c diff --git a/src/gtk1/gsockgtk.c b/src/gtk1/gsockgtk.c index 8551a7d13b..fc88b47ddb 100644 --- a/src/gtk1/gsockgtk.c +++ b/src/gtk1/gsockgtk.c @@ -9,6 +9,7 @@ #if wxUSE_SOCKETS +#include #include #include @@ -31,7 +32,7 @@ void _GSocket_GDK_Input(gpointer data, _GSocket_Detected_Write(socket); } -bool _GSocket_GUI_Init(GSocket *socket) +int _GSocket_GUI_Init(GSocket *socket) { gint *m_id; @@ -80,6 +81,8 @@ void _GSocket_Uninstall_Callback(GSocket *socket, GSocketEvent event) gint *m_id = (gint *)(socket->m_gui_dependent); int c; + assert( m_id != NULL ); + switch (event) { case GSOCK_LOST: /* fall-through */