Fix warning with mingw32
Apparently it thinks getsockopt()'s should be a char *, while it's a void *
according to POSIX. Casting to void * avoids the warning.
diff --git a/library/net.c b/library/net.c
index 2d49463..1bd5160 100644
--- a/library/net.c
+++ b/library/net.c
@@ -452,7 +452,7 @@
#endif
/* Is this a TCP or UDP socket? */
- if( getsockopt( bind_fd, SOL_SOCKET, SO_TYPE, &type, &type_len ) != 0 ||
+ if( getsockopt( bind_fd, SOL_SOCKET, SO_TYPE, (void *) &type, &type_len ) != 0 ||
( type != SOCK_STREAM && type != SOCK_DGRAM ) )
{
return( POLARSSL_ERR_NET_ACCEPT_FAILED );