summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-22 06:22:50 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-22 06:22:50 +0000
commit6e3ff2ecd9fdd82295a870e3db1228d5d586413b (patch)
tree3a7e510e68b9c56cac030b5204a7ae9ed056d973 /io.c
parentada56ddec728b6c28a97ad2af42b37fbc38dcc78 (diff)
io.c: fix local variables
* io.c (io_writev): fix local variable declarations, when writev(2) is not available. [Feature #9323] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/io.c b/io.c
index 492139be56..7e82ba340a 100644
--- a/io.c
+++ b/io.c
@@ -1654,9 +1654,10 @@ static VALUE
io_writev(int argc, VALUE *argv, VALUE io)
{
rb_io_t *fptr;
- long n, total;
+ long n;
VALUE str, tmp, total = INT2FIX(0);
int nosync;
+ int i;
io = GetWriteIO(io);
tmp = rb_io_check_io(io);