Skip to content

Instantly share code, notes, and snippets.

@zzak
Created October 16, 2013 13:01
Show Gist options
  • Save zzak/7007319 to your computer and use it in GitHub Desktop.
Save zzak/7007319 to your computer and use it in GitHub Desktop.
Index: ext/io/nonblock/nonblock.c
===================================================================
--- ext/io/nonblock/nonblock.c (revision 43305)
+++ ext/io/nonblock/nonblock.c (working copy)
@@ -106,9 +106,7 @@
void
Init_nonblock(void)
{
- VALUE io = rb_cIO;
-
- rb_define_method(io, "nonblock?", rb_io_nonblock_p, 0);
- rb_define_method(io, "nonblock=", rb_io_nonblock_set, 1);
- rb_define_method(io, "nonblock", rb_io_nonblock_block, -1);
+ rb_define_method(rb_cIO, "nonblock?", rb_io_nonblock_p, 0);
+ rb_define_method(rb_cIO, "nonblock=", rb_io_nonblock_set, 1);
+ rb_define_method(rb_cIO, "nonblock", rb_io_nonblock_block, -1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment