[前][次][番号順一覧][スレッド一覧]

ruby-changes:27197

From: akr <ko1@a...>
Date: Fri, 15 Feb 2013 12:27:21 +0900 (JST)
Subject: [ruby-changes:27197] akr:r39249 (trunk): * ext/socket/getaddrinfo.c (GET_AI): don't cast 1st argument for

akr	2013-02-15 12:27:05 +0900 (Fri, 15 Feb 2013)

  New Revision: 39249

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39249

  Log:
    * ext/socket/getaddrinfo.c (GET_AI): don't cast 1st argument for
      INIT_SOCKADDR.

  Modified files:
    trunk/ChangeLog
    trunk/ext/socket/getaddrinfo.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 39248)
+++ ChangeLog	(revision 39249)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Feb 15 12:26:13 2013  Tanaka Akira  <akr@f...>
+
+	* ext/socket/getaddrinfo.c (GET_AI): don't cast 1st argument for
+	  INIT_SOCKADDR.
+
 Fri Feb 15 08:12:11 2013  Tanaka Akira  <akr@f...>
 
 	* ext/socket/sockport.h (SET_SS_LEN): removed.
Index: ext/socket/getaddrinfo.c
===================================================================
--- ext/socket/getaddrinfo.c	(revision 39248)
+++ ext/socket/getaddrinfo.c	(revision 39249)
@@ -186,7 +186,7 @@ if (pai->ai_flags & AI_CANONNAME) {\ https://github.com/ruby/ruby/blob/trunk/ext/socket/getaddrinfo.c#L186
 	(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);\

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]