* 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:
akr 2013-02-15 03:27:05 +00:00
Родитель 1ff7108306
Коммит 0cc9cea3b4
2 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -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);\