diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2020-01-26 20:19:19 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2020-01-26 20:25:52 +0200 |
commit | fd47fd62bbb1bfd13ab63869137971d8b390025f (patch) | |
tree | d40821d7650cb54e27e7ba783f84df136d993912 /src/xz/file_io.c | |
parent | xz: coder.c: Make writing output a separate function. (diff) | |
download | xz-fd47fd62bbb1bfd13ab63869137971d8b390025f.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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xz/file_io.c b/src/xz/file_io.c index 7e9a4e67..98918034 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: |