Commit 39704bec authored by Guenter Knauf's avatar Guenter Knauf
Browse files

add cast to silent compiler warning with 64bit systems.

parent fad14bca
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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",