fixed windows build warning
This commit is contained in:
parent
d1baa9f541
commit
989d7f4aad
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user