mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 15:48:49 -05:00
typecast setsockopt()'s 4th argument to void * to make compilers complain
less
This commit is contained in:
parent
7ea837a18c
commit
d5b8971ff3
@ -490,7 +490,8 @@ static void Curl_setNoDelay(struct connectdata *conn,
|
||||
#ifdef TCP_NODELAY
|
||||
struct SessionHandle *data= conn->data;
|
||||
socklen_t onoff = (socklen_t) data->tcp_nodelay;
|
||||
if(setsockopt(sockfd, IPPROTO_TCP, TCP_NODELAY, &onoff, sizeof(onoff)) < 0)
|
||||
if(setsockopt(sockfd, IPPROTO_TCP, TCP_NODELAY, (void *)&onoff,
|
||||
sizeof(onoff)) < 0)
|
||||
infof(data, "Could not set TCP_NODELAY: %s\n",
|
||||
Curl_strerror(conn, Curl_ourerrno()));
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user