diff options
-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); |