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.
This commit is contained in:
parent
aeab252fef
commit
9325b26b42
1 changed files with 1 additions and 1 deletions
|
@ -452,7 +452,7 @@ int net_accept( int bind_fd, int *client_fd, void *client_ip )
|
|||
#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 );
|
||||
|
|
Loading…
Reference in a new issue