aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/file.c b/file.c
index d4e7e36cc8..88a7065cf7 100644
--- a/file.c
+++ b/file.c
@@ -5601,11 +5601,8 @@ Init_File(void)
/* non-blocking lock. used with LOCK_SH or LOCK_EX. see File#flock */
rb_define_const(rb_mFConst, "LOCK_NB", INT2FIX(LOCK_NB));
- /* Document-const: NULL
- *
- * Name of the null device
- */
- rb_file_const("NULL", rb_obj_freeze(rb_usascii_str_new2(null_device)));
+ /* Name of the null device */
+ rb_define_const(rb_mFConst, "NULL", rb_obj_freeze(rb_usascii_str_new2(null_device)));
rb_define_method(rb_cFile, "path", rb_file_path, 0);
rb_define_method(rb_cFile, "to_path", rb_file_path, 0);