From 39704bec3c2d8c9542d42bc22e539ad0615aeb84 Mon Sep 17 00:00:00 2001 From: Gunter Knauf Date: Sat, 29 Aug 2009 04:12:51 +0000 Subject: add cast to silent compiler warning with 64bit systems. --- lib/connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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", -- cgit v1.2.3