aboutsummaryrefslogtreecommitdiff
path: root/src/xz/file_io.c
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2020-01-26 20:19:19 +0200
committerLasse Collin <lasse.collin@tukaani.org>2020-02-05 22:00:28 +0200
commitacc0ef3ac80f18e349c6d0252177707105c0a29c (patch)
tree2944d71bf48ef6c7ec2253a37c6fa9ffa26e4124 /src/xz/file_io.c
parentxz: coder.c: Make writing output a separate function. (diff)
downloadxz-acc0ef3ac80f18e349c6d0252177707105c0a29c.tar.xz
xz: Move flush_needed from mytime.h to file_pair struct in file_io.h.
Diffstat (limited to 'src/xz/file_io.c')
-rw-r--r--src/xz/file_io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xz/file_io.c b/src/xz/file_io.c
index 04e58c51..c891f3ca 100644
--- a/src/xz/file_io.c
+++ b/src/xz/file_io.c
@@ -750,6 +750,7 @@ io_open_src(const char *src_name)
.dest_fd = -1,
.src_eof = false,
.src_has_seen_input = false,
+ .flush_needed = false,
.dest_try_sparse = false,
.dest_pending_sparse = 0,
};
@@ -1150,7 +1151,7 @@ io_read(file_pair *pair, io_buf *buf, size_t size)
return SIZE_MAX;
case IO_WAIT_TIMEOUT:
- flush_needed = true;
+ pair->flush_needed = true;
return pos;
default: