mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/socket/socket.c (sock_s_getaddrinfo): use socktype_arg.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
af5678c203
commit
31fa80dadd
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Fri Jan 2 00:49:44 2009 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/socket/socket.c (sock_s_getaddrinfo): use socktype_arg.
|
||||
|
||||
Fri Jan 2 00:12:27 2009 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/socket/socket.c (family_arg): extracted from
|
||||
|
|
|
@ -3270,7 +3270,7 @@ sock_s_getaddrinfo(int argc, VALUE *argv)
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue