summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorglass <glass@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-02-11 03:06:10 +0000
committerglass <glass@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-02-11 03:06:10 +0000
commit43a45b3fedcfc0b00ac6a0bafbcc49d8ab592671 (patch)
tree047b9f45f77d9c801f32456e2f4ce3c7a3382e76 /io.c
parent0f79725a0d20182d749e6ad89785b9acfe5c50dd (diff)
io.c: remove unused variable and fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/io.c b/io.c
index be3799364e..5bacad14b2 100644
--- a/io.c
+++ b/io.c
@@ -10952,18 +10952,17 @@ nogvl_copy_file_range(struct copy_stream_struct *stp)
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 */