summaryrefslogtreecommitdiffstats
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
commit05f305a091477ad81ef9289c2b407966811bcf96 (patch)
tree5cc0b0d419a3e9dc606e98f983cc7d2f182f37cd
parent0e081d26df2106c20a852214c238252e90676c17 (diff)
downloadruby-05f305a091477ad81ef9289c2b407966811bcf96.tar.gz
ruby-05f305a091477ad81ef9289c2b407966811bcf96.tar.xz
ruby-05f305a091477ad81ef9289c2b407966811bcf96.zip
* io.c (rb_stdio_set_default_encoding): prototyped.
git-svn-id: http://svn.ruby-lang.org/repos/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 3153ff7c2..16cb9b560 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 35c7b457f..297f0e281 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)