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:34 +0300
commitb7dee202d5b041ccae028d0c5433b83cecbe9e5d (patch)
treef23df7c58d1417341e8b067b054637e547149dd4 /src/xz/file_io.c
parentxz: Remove an outdated NetBSD-specific comment. (diff)
downloadxz-b7dee202d5b041ccae028d0c5433b83cecbe9e5d.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 '')
-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 a97dbfa2..871a099b 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;
}