summaryrefslogtreecommitdiff
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:34 +0300
commitb7dee202d5b041ccae028d0c5433b83cecbe9e5d (patch)
treef23df7c58d1417341e8b067b054637e547149dd4
parent265e7b44d804b47373f10b7da28350db7611cea6 (diff)
downloadxz-b7dee202d5b041ccae028d0c5433b83cecbe9e5d.tar.gz
xz: Fix return value type in io_write_buf().
It didn't affect the behavior of the code since -1 becomes true anyway.
-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 a97dbfa..871a099 100644
--- a/src/xz/file_io.c
+++ b/src/xz/file_io.c
@@ -880,7 +880,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;
}