From: Lasse Collin Date: Fri, 28 Jun 2013 20:56:17 +0000 (+0300) Subject: xz: Fix return value type in io_write_buf(). X-Git-Tag: v5.1.3alpha~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e61a5c95da3fe31281d959e5e842885a8ba2b5bd;p=xz xz: Fix return value type in io_write_buf(). It didn't affect the behavior of the code since -1 becomes true anyway. --- 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; }