fixed windows build warning

This commit is contained in:
John Safranek 2012-09-18 11:11:45 -07:00
parent d1baa9f541
commit 989d7f4aad

View File

@ -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