summaryrefslogtreecommitdiff
path: root/safe.c
diff options
context:
space:
mode:
Diffstat (limited to 'safe.c')
-rw-r--r--safe.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/safe.c b/safe.c
index 73d861d..c1eca67 100644
--- a/safe.c
+++ b/safe.c
@@ -24,12 +24,12 @@
#undef rb_secure
#undef rb_set_safe_level
-#undef ruby_safe_level_3_warning
+#undef ruby_safe_level_2_warning
int
-ruby_safe_level_3_warning(void)
+ruby_safe_level_2_warning(void)
{
- return 3;
+ return 2;
}
int
@@ -51,7 +51,7 @@ rb_set_safe_level(int level)
if (level > th->safe_level) {
if (level > SAFE_LEVEL_MAX) {
- rb_raise(rb_eArgError, "$SAFE=3 and 4 is obsolete");
+ rb_raise(rb_eArgError, "$SAFE=2 to 4 are obsolete");
}
th->safe_level = level;
}
@@ -75,7 +75,7 @@ safe_setter(VALUE val)
th->safe_level, level);
}
if (level > SAFE_LEVEL_MAX) {
- rb_raise(rb_eArgError, "$SAFE=3 and 4 is obsolete");
+ rb_raise(rb_eArgError, "$SAFE=2 to 4 are obsolete");
}
th->safe_level = level;
}