summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-05 10:18:21 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-05 10:18:21 +0000
commitcb9038cbafd42efd669524417ee73919bed58c49 (patch)
tree5cc0b0d419a3e9dc606e98f983cc7d2f182f37cd
parentc6abdf3e0cc73a7d280976f404984f7da1500462 (diff)
* io.c (rb_stdio_set_default_encoding): prototyped.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--io.c2
-rw-r--r--ruby.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/io.c b/io.c
index 3153ff7c23..16cb9b5607 100644
--- a/io.c
+++ b/io.c
@@ -8408,7 +8408,7 @@ rb_io_set_encoding(int argc, VALUE *argv, VALUE io)
}
void
-rb_stdio_set_default_encoding()
+rb_stdio_set_default_encoding(void)
{
extern VALUE rb_stdin, rb_stdout, rb_stderr;
VALUE val = Qnil;
diff --git a/ruby.c b/ruby.c
index 35c7b457f5..297f0e2812 100644
--- a/ruby.c
+++ b/ruby.c
@@ -1211,7 +1211,7 @@ rb_f_chomp(argc, argv)
return str;
}
-void rb_stdio_set_default_encoding();
+void rb_stdio_set_default_encoding(void);
static VALUE
process_options(int argc, char **argv, struct cmdline_options *opt)