mirror of
https://github.com/curl/curl.git
synced 2026-07-22 20:57:25 +03:00
add cast to silent compiler warning with 64bit systems.
This commit is contained in:
parent
fad14bca01
commit
39704bec3c
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue