X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/33ac7e6f01acbac1cff0ad400d8ea7f0bfd0a62f..3cd94a0d119ade811cd876a309cfe6d28b5c36dd:/src/msw/gsocket.c diff --git a/src/msw/gsocket.c b/src/msw/gsocket.c index a6e021bc68..4490c43ada 100644 --- a/src/msw/gsocket.c +++ b/src/msw/gsocket.c @@ -60,7 +60,6 @@ #include - /* if we use configure for MSW SOCKLEN_T will be already defined */ #ifndef SOCKLEN_T # define SOCKLEN_T int @@ -514,7 +513,7 @@ GSocketError GSocket_Connect(GSocket *sck, GSocketStream stream) /* sck->m_error is set in _GSocket_Connect_Timeout */ } - return err; + return (GSocketError) err; } /* If connect failed with EWOULDBLOCK and the GSocket object @@ -1378,6 +1377,6 @@ GSocketError GAddress_UNIX_GetPath(GAddress *address, char *path, size_t sbuf) * Translation unit shouldn't be empty, so include this typedef to make the * compiler (VC++ 6.0, for example) happy */ -typedef (*wxDummy)(); +typedef void (*wxDummy)(); #endif /* wxUSE_SOCKETS || defined(__GSOCKET_STANDALONE__) */