diff --git a/lib/connect.c b/lib/connect.c index fcfce72482..e9f9cf1505 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2007, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2008, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -694,7 +694,7 @@ singleipconnect(struct connectdata *conn, addr->protocol=ai->ai_protocol; addr->addrlen = (ai->ai_addrlen < (socklen_t)sizeof(struct Curl_sockaddr_storage)) ? - ai->ai_addrlen : (socklen_t)sizeof(struct Curl_sockaddr_storage); + (unsigned int)ai->ai_addrlen : sizeof(struct Curl_sockaddr_storage); memcpy(&addr->addr, ai->ai_addr, addr->addrlen); /* If set, use opensocket callback to get the socket */