mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 20:54:41 +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
|
#else
|
||||||
struct timeval timeout = {ssl->dtls_timeout, 0};
|
struct timeval timeout = {ssl->dtls_timeout, 0};
|
||||||
#endif
|
#endif
|
||||||
setsockopt(sd, SOL_SOCKET, SO_RCVTIMEO, &timeout, sizeof(timeout));
|
setsockopt(sd, SOL_SOCKET,SO_RCVTIMEO, (char*)&timeout,sizeof(timeout));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user