1
0
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:
Gunter Knauf 2009-08-29 04:12:51 +00:00
parent fad14bca01
commit 39704bec3c

View File

@ -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",