]> granicus.if.org Git - xz/commitdiff
xz: Fix return value type in io_write_buf().
authorLasse Collin <lasse.collin@tukaani.org>
Fri, 28 Jun 2013 20:56:17 +0000 (23:56 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Fri, 28 Jun 2013 20:56:34 +0000 (23:56 +0300)
It didn't affect the behavior of the code since -1
becomes true anyway.

src/xz/file_io.c

index a97dbfa278d2809f901a544aa4ccdd49eee7fcf7..871a099b61939c9e82c2d4b7e18d0ebd985c4c8a 100644 (file)
@@ -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;
                        }