From b7dee202d5b041ccae028d0c5433b83cecbe9e5d Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Fri, 28 Jun 2013 23:56:17 +0300 Subject: [PATCH] xz: Fix return value type in io_write_buf(). It didn't affect the behavior of the code since -1 becomes true anyway. --- src/xz/file_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.11.4.GIT