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

ruby-changes:54830

From: glass <ko1@a...>
Date: Mon, 11 Feb 2019 12:06:16 +0900 (JST)
Subject: [ruby-changes:54830] glass:r67049 (trunk): io.c: remove unused variable and fix typo

glass	2019-02-11 12:06:10 +0900 (Mon, 11 Feb 2019)

  New Revision: 67049

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

  Log:
    io.c: remove unused variable and fix typo

  Modified files:
    trunk/io.c
Index: io.c
===================================================================
--- io.c	(revision 67048)
+++ io.c	(revision 67049)
@@ -10952,18 +10952,17 @@ nogvl_copy_file_range(struct copy_stream https://github.com/ruby/ruby/blob/trunk/io.c#L10952
 static int
 nogvl_fcopyfile(struct copy_stream_struct *stp)
 {
-    off_t src_size, cur, ss = 0;
+    off_t cur, ss = 0;
     int ret;
 
     if (stp->copy_length >= (off_t)0) {
-        /* copy_length can't be specified in copyfile(3) */
+        /* copy_length can't be specified in fcopyfile(3) */
         return 0;
     }
 
     if (!S_ISREG(stp->src_stat.st_mode))
         return 0;
 
-    src_size = stp->src_stat.st_size;
     if (!S_ISREG(stp->dst_stat.st_mode))
         return 0;
     if (lseek(stp->dst_fd, 0, SEEK_CUR) > (off_t)0) /* if dst IO was already written */

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

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