diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2013-06-28 23:56:17 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2013-06-28 23:56:17 +0300 |
commit | e61a5c95da3fe31281d959e5e842885a8ba2b5bd (patch) | |
tree | 1afc0daec18f03f77231c29cf1ccaeafcee90ff9 | |
parent | xz: Use the self-pipe trick to avoid a race condition with signals. (diff) | |
download | xz-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.
-rw-r--r-- | src/xz/file_io.c | 2 |
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; } |