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.0.5~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7dee202d5b041ccae028d0c5433b83cecbe9e5d;p=thirdparty%2Fxz.git 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 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; }