fixed ignored parameter
FossilOrigin-Name: 5e8330b1dc331b9e4e057b342bf4b9b21113dc9be0468c09d0ce3e6047564af7
This commit is contained in:
parent
8a584599ef
commit
6ec2a4cf40
@ -9,6 +9,6 @@ int sock_set_recvtimeout(int sock, int seconds)
|
|||||||
{
|
{
|
||||||
struct timeval timeval;
|
struct timeval timeval;
|
||||||
memset(&timeval,0,sizeof(timeval));
|
memset(&timeval,0,sizeof(timeval));
|
||||||
timeval.tv_sec=1;
|
timeval.tv_sec=seconds;
|
||||||
return setsockopt(sock,SOL_SOCKET,SO_RCVTIMEO,&timeval,sizeof(timeval));
|
return setsockopt(sock,SOL_SOCKET,SO_RCVTIMEO,&timeval,sizeof(timeval));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user