Created
October 16, 2013 13:01
-
-
Save zzak/7007319 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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