From 16294913f71b8a38526096cf6458340b19b45f9f Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 16 Feb 2015 04:08:52 +0000 Subject: use rb_funcallv * use rb_funcallv() for no arguments call instead of variadic rb_funcall(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/socket/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/socket/socket.c') diff --git a/ext/socket/socket.c b/ext/socket/socket.c index bbf50a5287..eeee571036 100644 --- a/ext/socket/socket.c +++ b/ext/socket/socket.c @@ -150,7 +150,7 @@ sock_initialize(int argc, VALUE *argv, VALUE sock) static VALUE io_call_close(VALUE io) { - return rb_funcall(io, rb_intern("close"), 0, 0); + return rb_funcallv(io, rb_intern("close"), 0, 0); } static VALUE -- cgit v1.2.3