diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-03-30 13:05:45 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-03-30 13:05:45 +0000 |
commit | d5b8971ff360e596cfbefbc5964f2a3c2e6415ec (patch) | |
tree | 983d14c256a7b4e09837428a1355369deaa91746 | |
parent | 7ea837a18c7d22c790daf2733eaffcc5450b1bd9 (diff) |
typecast setsockopt()'s 4th argument to void * to make compilers complain
less
-rw-r--r-- | lib/connect.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/connect.c b/lib/connect.c index 78338de65..0d42ca14d 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -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 |