summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-03 06:15:51 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-03 06:15:51 (GMT)
commit338bd4cc651964e3901a4ddaa52667ddb47a55cf (patch)
tree716e48eb9897ba5fb4bab566b5a5a914acd28ffc /dir.c
parent45df1c24d269f93a2bc1e7a6fe0ffcecc1193051 (diff)
remove duplication in warning
* dir.c (sys_warning_1): remove duplication in the message. * error.c (rb_mod_sys_fail_str): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dir.c b/dir.c
index e983ea2..a9435f6 100644
--- a/dir.c
+++ b/dir.c
@@ -1081,7 +1081,7 @@ dir_s_rmdir(VALUE obj, VALUE dir)
static VALUE
sys_warning_1(VALUE mesg)
{
- rb_sys_warning("%s:%s", strerror(errno), (const char *)mesg);
+ rb_sys_warning("%s", (const char *)mesg);
return Qnil;
}