mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
Change typecast due to http://cool.haxx.se/cvs.cgi/curl/include/curl/curl.h.diff?r1=1.336&r2=1.337
This commit is contained in:
parent
34d02d1969
commit
59b4bdf78d
@ -5,7 +5,7 @@
|
||||
* | (__| |_| | _ <| |___
|
||||
* \___|\___/|_| \_\_____|
|
||||
*
|
||||
* Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
* Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, 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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user