summaryrefslogtreecommitdiff
path: root/ext/io
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-25 01:09:17 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-25 01:09:17 +0000
commitd8d326c97a1119dac58063681e2d44c51fd65de1 (patch)
treeaf2938495973f83e18f867d0f0684d626ca8cc72 /ext/io
parent86693b30c53ea750d0f1e1a7210476ec9c9f8374 (diff)
console.c: get rid of NameError
* ext/io/console/console.c (console_dev): id_console is not a constant name, use rb_const_remove() to get rid of NameError. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/io')
-rw-r--r--ext/io/console/console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/io/console/console.c b/ext/io/console/console.c
index e4bea6e..0290a65 100644
--- a/ext/io/console/console.c
+++ b/ext/io/console/console.c
@@ -647,7 +647,7 @@ console_dev(VALUE klass)
if ((fptr = RFILE(con)->fptr) && GetReadFD(fptr) != -1)
return con;
}
- rb_mod_remove_const(klass, ID2SYM(id_console));
+ rb_const_remove(klass, id_console);
}
{
VALUE args[2];