mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
add cast to silent compiler warning with 64bit systems.
This commit is contained in:
parent
fad14bca01
commit
39704bec3c
@ -277,7 +277,7 @@ static CURLcode bindlocal(struct connectdata *conn,
|
||||
* hostname or ip address.
|
||||
*/
|
||||
if(setsockopt(sockfd, SOL_SOCKET, SO_BINDTODEVICE,
|
||||
dev, strlen(dev)+1) != 0) {
|
||||
dev, (curl_socklen_t)strlen(dev)+1) != 0) {
|
||||
error = SOCKERRNO;
|
||||
infof(data, "SO_BINDTODEVICE %s failed with errno %d: %s;"
|
||||
" will do regular bind\n",
|
||||
|
Loading…
x
Reference in New Issue
Block a user