* [PATCH] accept: avoid passing unnecessary arg to rb_funcall
@ 2018-01-19 17:03 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2018-01-19 17:03 UTC (permalink / raw)
To: kgio-public
Followup-to commit aa1da2e47c69302f9bdb2ab4990e81d87bbcaf1f
("wait: avoid passing unnecessary args to rb_funcall")
---
ext/kgio/accept.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ext/kgio/accept.c b/ext/kgio/accept.c
index c847c92..f1de39d 100644
--- a/ext/kgio/accept.c
+++ b/ext/kgio/accept.c
@@ -40,7 +40,7 @@ static VALUE set_accepted(VALUE klass, VALUE aclass)
if (NIL_P(aclass))
aclass = cKgio_Socket;
- tmp = rb_funcall(aclass, rb_intern("included_modules"), 0, 0);
+ tmp = rb_funcall(aclass, rb_intern("included_modules"), 0);
tmp = rb_funcall(tmp, rb_intern("include?"), 1, mSocketMethods);
if (tmp != Qtrue)
--
EW
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-01-19 17:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-19 17:03 [PATCH] accept: avoid passing unnecessary arg to rb_funcall Eric Wong
Code repositories for project(s) associated with this public inbox
https://yhbt.net/kgio.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).