X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/06b466c74fae8f27544f143abdcabcd2385602e4..86ff9b45d9a54125f3143e6a270a45677c0ca7fd:/src/gtk1/gsockgtk.c diff --git a/src/gtk1/gsockgtk.c b/src/gtk1/gsockgtk.c index 65a462a348..6a1a3f5ee7 100644 --- a/src/gtk1/gsockgtk.c +++ b/src/gtk1/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); } -void _GSocket_GUI_Init(GSocket *socket) +int _GSocket_GUI_Init(GSocket *socket) { gint *m_id; @@ -40,6 +42,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 +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 */