From: Robin Dunn Date: Sat, 7 Aug 2004 03:04:44 +0000 (+0000) Subject: At least correct the compile error until we decide what to for real. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9a7e4a56b699e5072e6f3cab3fec0794e50e274d?ds=inline At least correct the compile error until we decide what to for real. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/unix/gsocket.cpp b/src/unix/gsocket.cpp index a6d0aa07b5..5225353a7d 100644 --- a/src/unix/gsocket.cpp +++ b/src/unix/gsocket.cpp @@ -1131,7 +1131,7 @@ void GSocket::UnsetCallback(GSocketEventFlags flags) GSocketError GSocket::GetSockOpt(int level, int optname, void *optval, int *optlen) { - if (getsockopt(m_fd, level, optname, optval, optlen) == 0) + if (getsockopt(m_fd, level, optname, optval, (SOCKLEN_T*)optlen) == 0) { return GSOCK_NOERROR; } @@ -1149,7 +1149,7 @@ GSocketError GSocket::SetSockOpt(int level, int optname, } #define CALL_CALLBACK(socket, event) { \ - socket->Disable(event); \ + socket->Disable(event); \ if (socket->m_cbacks[event]) \ socket->m_cbacks[event](socket, event, socket->m_data[event]); \ }