From: Gunter Knauf Date: Sat, 29 Aug 2009 04:12:51 +0000 (+0000) Subject: add cast to silent compiler warning with 64bit systems. X-Git-Tag: curl-7_19_7~193 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39704bec3c2d8c9542d42bc22e539ad0615aeb84;p=thirdparty%2Fcurl.git add cast to silent compiler warning with 64bit systems. --- diff --git a/lib/connect.c b/lib/connect.c index 7865216bd0..2a6b003e05 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",