зеркало из https://github.com/github/ruby.git
* ext/socket/getaddrinfo.c (GET_AI): don't cast 1st argument for
INIT_SOCKADDR. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
1ff7108306
Коммит
0cc9cea3b4
|
@ -1,3 +1,8 @@
|
|||
Fri Feb 15 12:26:13 2013 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/socket/getaddrinfo.c (GET_AI): don't cast 1st argument for
|
||||
INIT_SOCKADDR.
|
||||
|
||||
Fri Feb 15 08:12:11 2013 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/socket/sockport.h (SET_SS_LEN): removed.
|
||||
|
|
|
@ -186,7 +186,7 @@ if (pai->ai_flags & AI_CANONNAME) {\
|
|||
(ai)->ai_addr = (struct sockaddr *)((ai) + 1);\
|
||||
(ai)->ai_family = (afd)->a_af;\
|
||||
(ai)->ai_addrlen = (afd)->a_socklen;\
|
||||
INIT_SOCKADDR((struct sockaddr *)(ai)->ai_addr, (afd)->a_af, (afd)->a_socklen);\
|
||||
INIT_SOCKADDR((ai)->ai_addr, (afd)->a_af, (afd)->a_socklen);\
|
||||
((struct sockinet *)(ai)->ai_addr)->si_port = (port);\
|
||||
p = (char *)((ai)->ai_addr);\
|
||||
memcpy(p + (afd)->a_off, (addr), (afd)->a_addrlen);\
|
||||
|
|
Загрузка…
Ссылка в новой задаче