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

ruby-changes:9715

From: akr <ko1@a...>
Date: Fri, 2 Jan 2009 00:50:49 +0900 (JST)
Subject: [ruby-changes:9715] Ruby:r21256 (trunk): * ext/socket/socket.c (sock_s_getaddrinfo): use socktype_arg.

akr	2009-01-02 00:50:16 +0900 (Fri, 02 Jan 2009)

  New Revision: 21256

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

  Log:
    * ext/socket/socket.c (sock_s_getaddrinfo): use socktype_arg.

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

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 21255)
+++ ChangeLog	(revision 21256)
@@ -1,3 +1,7 @@
+Fri Jan  2 00:49:44 2009  Tanaka Akira  <akr@f...>
+
+	* ext/socket/socket.c (sock_s_getaddrinfo): use socktype_arg.
+
 Fri Jan  2 00:12:27 2009  Tanaka Akira  <akr@f...>
 
 	* ext/socket/socket.c (family_arg): extracted from
Index: ext/socket/socket.c
===================================================================
--- ext/socket/socket.c	(revision 21255)
+++ ext/socket/socket.c	(revision 21256)
@@ -3270,7 +3270,7 @@
     hints.ai_family = NIL_P(family) ? PF_UNSPEC : family_arg(family);
 
     if (!NIL_P(socktype)) {
-	hints.ai_socktype = NUM2INT(socktype);
+	hints.ai_socktype = socktype_arg(socktype);
     }
     if (!NIL_P(protocol)) {
 	hints.ai_protocol = NUM2INT(protocol);

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

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