diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-01 15:50:16 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-01 15:50:16 +0000 |
commit | 31fa80daddbdeb074bd8bb4afb5e129f1c92ec82 (patch) | |
tree | 38f5fdd60421ed518bb532c2f24117ac581cc7f1 | |
parent | af5678c203417baf043f386766792fcc057074a8 (diff) |
* 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
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | ext/socket/socket.c | 2 |
2 files changed, 5 insertions, 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 diff --git a/ext/socket/socket.c b/ext/socket/socket.c index 6d8ad7404e..94244fc5ad 100644 --- a/ext/socket/socket.c +++ b/ext/socket/socket.c @@ -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); |