* Name: gsocket.c
* Author: Guillermo Rodriguez Garcia <guille@iies.es>
* Purpose: GSocket main MSW file
- * Licence: The wxWidgets licence
+ * Licence: The wxWindows licence
* CVSID: $Id$
* -------------------------------------------------------------------------
*/
socket->m_establishing = FALSE;
- getsockopt(socket->m_fd, SOL_SOCKET, SO_ERROR, (void*)&error, &len);
+ getsockopt(socket->m_fd, SOL_SOCKET, SO_ERROR, (char*)&error, &len);
if (error)
{
GSocketError GSocket_GetSockOpt(GSocket *socket, int level, int optname,
void *optval, int *optlen)
{
- if (getsockopt(socket->m_fd, level, optname, optval, optlen) == 0)
+ if (getsockopt(socket->m_fd, level, optname, (char*)optval, optlen) == 0)
{
return GSOCK_NOERROR;
}
GSocketError GSocket_SetSockOpt(GSocket *socket, int level, int optname,
const void *optval, int optlen)
{
- if (setsockopt(socket->m_fd, level, optname, optval, optlen) == 0)
+ if (setsockopt(socket->m_fd, level, optname, (char*)optval, optlen) == 0)
{
return GSOCK_NOERROR;
}