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 | 7867001c6223325fea1845391ce153bd1bb30d9b (patch) | |
tree | 38f5fdd60421ed518bb532c2f24117ac581cc7f1 /ext/socket/socket.c | |
parent | be8150e559ccaf2998938ac8f285c163b4c49bc5 (diff) | |
download | ruby-7867001c6223325fea1845391ce153bd1bb30d9b.tar.gz ruby-7867001c6223325fea1845391ce153bd1bb30d9b.tar.xz ruby-7867001c6223325fea1845391ce153bd1bb30d9b.zip |
* ext/socket/socket.c (sock_s_getaddrinfo): use socktype_arg.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/socket.c')
-rw-r--r-- | ext/socket/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c index 6d8ad7404..94244fc5a 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); |