aboutsummaryrefslogtreecommitdiff
path: root/src/xz/file_io.c
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2013-06-28 23:56:17 +0300
committerLasse Collin <lasse.collin@tukaani.org>2013-06-28 23:56:17 +0300
commite61a5c95da3fe31281d959e5e842885a8ba2b5bd (patch)
tree1afc0daec18f03f77231c29cf1ccaeafcee90ff9 /src/xz/file_io.c
parentxz: Use the self-pipe trick to avoid a race condition with signals. (diff)
downloadxz-e61a5c95da3fe31281d959e5e842885a8ba2b5bd.tar.xz
xz: Fix return value type in io_write_buf().
It didn't affect the behavior of the code since -1 becomes true anyway.
Diffstat (limited to 'src/xz/file_io.c')
-rw-r--r--src/xz/file_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xz/file_io.c b/src/xz/file_io.c
index 21cdecb0..a54dfa2e 100644
--- a/src/xz/file_io.c
+++ b/src/xz/file_io.c
@@ -1035,7 +1035,7 @@ io_write_buf(file_pair *pair, const uint8_t *buf, size_t size)
if (amount == -1) {
if (errno == EINTR) {
if (user_abort)
- return -1;
+ return true;
continue;
}