From: Ryan Norton Date: Thu, 23 Sep 2004 22:09:34 +0000 (+0000) Subject: Fix warning on OSX - its on int on mac/msw and a socklen_t on others X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7d065a0afee47090a2075e0c5b8d483568d6dd96 Fix warning on OSX - its on int on mac/msw and a socklen_t on others git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/unix/gsocket.cpp b/src/unix/gsocket.cpp index 488b28e62b..17f74feed9 100644 --- a/src/unix/gsocket.cpp +++ b/src/unix/gsocket.cpp @@ -1412,7 +1412,7 @@ void GSocket::Detected_Write() m_establishing = false; - getsockopt(m_fd, SOL_SOCKET, SO_ERROR, (void*)&error, &len); + getsockopt(m_fd, SOL_SOCKET, SO_ERROR, (void*)&error, (SOCKLEN_T*) &len); if (error) {