From 33a071016b312561e74470441bc512a13a9bf1d1 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 25 Dec 2007 05:11:59 +0000 Subject: [PATCH] * io.c (io_encoding_set): missing return type. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ io.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index fb67f342ef..022539a65f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Dec 25 14:11:57 2007 Nobuyoshi Nakada + + * io.c (io_encoding_set): missing return type. + Tue Dec 25 14:03:48 2007 NARUSE, Yui * test/rinda/test_rinda.rb (MockClock#{_forward, forwrd, sleep}): diff --git a/io.c b/io.c index 5edc26540c..4b392b8d27 100644 --- a/io.c +++ b/io.c @@ -1360,7 +1360,8 @@ read_all(rb_io_t *fptr, long siz, VALUE str) return io_enc_str(str, fptr); } -void rb_io_set_nonblock(rb_io_t *fptr) +void +rb_io_set_nonblock(rb_io_t *fptr) { int flags; #ifdef F_GETFL @@ -5605,6 +5606,7 @@ io_new_instance(VALUE args) return rb_class_new_instance(2, (VALUE*)args+1, *(VALUE*)args); } +static void io_encoding_set(rb_io_t *fptr, int argc, VALUE v1, VALUE v2) { if (argc == 2) {