From 31fa80daddbdeb074bd8bb4afb5e129f1c92ec82 Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 1 Jan 2009 15:50:16 +0000 Subject: * 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 --- ext/socket/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') 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); -- cgit v1.2.3