mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 12:44:45 +02:00
fixed windows build warning
This commit is contained in:
2
src/io.c
2
src/io.c
@@ -148,7 +148,7 @@ int EmbedReceive(CYASSL *ssl, char *buf, int sz, void *ctx)
|
||||
#else
|
||||
struct timeval timeout = {ssl->dtls_timeout, 0};
|
||||
#endif
|
||||
setsockopt(sd, SOL_SOCKET, SO_RCVTIMEO, &timeout, sizeof(timeout));
|
||||
setsockopt(sd, SOL_SOCKET,SO_RCVTIMEO, (char*)&timeout,sizeof(timeout));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user