[前][次][番号順一覧][スレッド一覧]

ruby-changes:48236

From: nobu <ko1@a...>
Date: Sun, 22 Oct 2017 15:22:55 +0900 (JST)
Subject: [ruby-changes:48236] nobu:r60351 (trunk): io.c: fix local variables

nobu	2017-10-22 15:22:50 +0900 (Sun, 22 Oct 2017)

  New Revision: 60351

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60351

  Log:
    io.c: fix local variables
    
    * io.c (io_writev): fix local variable declarations, when
      writev(2) is not available.  [Feature #9323]

  Modified files:
    trunk/io.c
Index: io.c
===================================================================
--- io.c	(revision 60350)
+++ io.c	(revision 60351)
@@ -1654,9 +1654,10 @@ static VALUE https://github.com/ruby/ruby/blob/trunk/io.c#L1654
 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);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]