about summary refs log tree commit homepage
path: root/ext
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2015-06-05 09:22:04 +0000
committerEric Wong <normalperson@yhbt.net>2015-06-05 17:12:28 +0000
commit49675b05f98a491953e5424fd8215773865ccb89 (patch)
tree8404240a5994c7a2f35edaeb4c030f480c1963ef /ext
parentb0f45312f50e7bfc112d7d4ba05ddfd5e3b1b4b4 (diff)
downloadsleepy_penguin-49675b05f98a491953e5424fd8215773865ccb89.tar.gz
The long constant name conveys no additional info.  Since
epoll_create1 is rarely called, and a cache lookup for cold
code is wasfeful
Diffstat (limited to 'ext')
-rw-r--r--ext/sleepy_penguin/epoll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/sleepy_penguin/epoll.c b/ext/sleepy_penguin/epoll.c
index 423ed69..120af0c 100644
--- a/ext/sleepy_penguin/epoll.c
+++ b/ext/sleepy_penguin/epoll.c
@@ -82,7 +82,7 @@ static struct ep_per_thread *ept_get(VALUE self, int maxevents)
 static VALUE s_new(VALUE klass, VALUE _flags)
 {
         int default_flags = RB_SP_CLOEXEC(EPOLL_CLOEXEC);
-        int flags = rb_sp_get_flags(klass, _flags, default_flags);
+        int flags = rb_sp_get_flags(cEpoll, _flags, default_flags);
         int fd = epoll_create1(flags);
         VALUE rv;