aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGunter Knauf <gk@gknw.de>2009-08-29 04:12:51 +0000
committerGunter Knauf <gk@gknw.de>2009-08-29 04:12:51 +0000
commit39704bec3c2d8c9542d42bc22e539ad0615aeb84 (patch)
tree3991842a2b3edb4c323793b43988cf1ef39fdc8a /lib
parentfad14bca01d7a3db629a86fd8af879e89781e065 (diff)
add cast to silent compiler warning with 64bit systems.
Diffstat (limited to 'lib')
-rw-r--r--lib/connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connect.c b/lib/connect.c
index 7865216bd..2a6b003e0 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -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",