ANSI C fixes.
Removed warnings.
Made the include files self-sufficient.
Some Solaris fixes.
diff --git a/misc/winsock.c b/misc/winsock.c
index 70d800e..6aff24a 100644
--- a/misc/winsock.c
+++ b/misc/winsock.c
@@ -251,7 +251,7 @@
unsigned int optval, optlen;
optlen = sizeof(optval);
- getsockopt(s, SOL_SOCKET, SO_ERROR, &optval, &optlen);
+ getsockopt(s, SOL_SOCKET, SO_ERROR, (void *) &optval, &optlen);
if (optval) WARN(winsock, "\t[%i] error: %d\n", s, optval);
return optval != 0;
}
@@ -2336,7 +2336,7 @@
pws->psop = psop;
pws->flags |= (0x0000FFFF & lEvent);
- getsockopt(pws->fd, SOL_SOCKET, SO_TYPE, &sock_type, &bytes);
+ getsockopt(pws->fd, SOL_SOCKET, SO_TYPE, (void *) &sock_type, &bytes);
if( sock_type == SOCK_RAW ) pws->flags |= WS_FD_RAW;
if( lEvent & (WS_FD_ACCEPT | WS_FD_CONNECT | WS_FD_READ | WS_FD_CLOSE) )