mirror of https://git.tukaani.org/xz.git
xz: Fix return value type in io_write_buf().
It didn't affect the behavior of the code since -1 becomes true anyway.
This commit is contained in:
parent
265e7b44d8
commit
b7dee202d5
|
@ -880,7 +880,7 @@ io_write_buf(file_pair *pair, const uint8_t *buf, size_t size)
|
||||||
if (amount == -1) {
|
if (amount == -1) {
|
||||||
if (errno == EINTR) {
|
if (errno == EINTR) {
|
||||||
if (user_abort)
|
if (user_abort)
|
||||||
return -1;
|
return true;
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue