X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5ff8699684c32129db801ba4edbde75c98aa23d5..45212047969548b7d4a848e3a9c6cfdcb0484104:/src/gtk/gsockgtk.c diff --git a/src/gtk/gsockgtk.c b/src/gtk/gsockgtk.c index 8551a7d13b..6a1a3f5ee7 100644 --- a/src/gtk/gsockgtk.c +++ b/src/gtk/gsockgtk.c @@ -2,6 +2,7 @@ * Project: GSocket (Generic Socket) for WX * Name: gsockgtk.c * Purpose: GSocket: GTK part + * Licence: The wxWindows licence * CVSID: $Id$ * ------------------------------------------------------------------------- */ @@ -9,6 +10,7 @@ #if wxUSE_SOCKETS +#include #include #include @@ -31,7 +33,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 +82,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 */