X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b715de93a6d773c9ff0c32340f734e27469f2e71..dd12ce22d806e6a9c40cf7bdfddbb237cd55b0ca:/src/unix/gsocket.cpp diff --git a/src/unix/gsocket.cpp b/src/unix/gsocket.cpp index d7bb9362d3..e9796134ec 100644 --- a/src/unix/gsocket.cpp +++ b/src/unix/gsocket.cpp @@ -700,7 +700,7 @@ GSocketError GSocket::Connect(GSocketStream stream) int error; SOCKLEN_T len = sizeof(error); - getsockopt(m_fd, SOL_SOCKET, SO_ERROR, (void*) &error, &len); + getsockopt(m_fd, SOL_SOCKET, SO_ERROR, (char*) &error, &len); if (!error) return GSOCK_NOERROR; @@ -987,7 +987,7 @@ GSocketEventFlags GSocket::Select(GSocketEventFlags flags) m_establishing = false; - getsockopt(m_fd, SOL_SOCKET, SO_ERROR, (void*)&error, &len); + getsockopt(m_fd, SOL_SOCKET, SO_ERROR, (char*)&error, &len); if (error) { @@ -1138,7 +1138,7 @@ void GSocket::UnsetCallback(GSocketEventFlags flags) GSocketError GSocket::GetSockOpt(int level, int optname, void *optval, int *optlen) { - if (getsockopt(m_fd, level, optname, optval, (SOCKLEN_T*)optlen) == 0) + if (getsockopt(m_fd, level, optname, (char*)optval, (SOCKLEN_T*)optlen) == 0) { return GSOCK_NOERROR; } @@ -1148,7 +1148,7 @@ GSocketError GSocket::GetSockOpt(int level, int optname, GSocketError GSocket::SetSockOpt(int level, int optname, const void *optval, int optlen) { - if (setsockopt(m_fd, level, optname, optval, optlen) == 0) + if (setsockopt(m_fd, level, optname, (const char*)optval, optlen) == 0) { return GSOCK_NOERROR; } @@ -1409,7 +1409,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, (char*)&error, &len); if (error) {