X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/06b466c74fae8f27544f143abdcabcd2385602e4..d56327cd0662d31960bea19c7570fd9854af1bd0:/src/gtk1/gsockgtk.c diff --git a/src/gtk1/gsockgtk.c b/src/gtk1/gsockgtk.c index 65a462a348..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); } -void _GSocket_GUI_Init(GSocket *socket) +int _GSocket_GUI_Init(GSocket *socket) { gint *m_id; @@ -40,6 +41,8 @@ void _GSocket_GUI_Init(GSocket *socket) m_id[0] = -1; m_id[1] = -1; + + return TRUE; } void _GSocket_GUI_Destroy(GSocket *socket) @@ -78,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 */