]> 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:17 +0000 (23:56 +0300)
It didn't affect the behavior of the code since -1
becomes true anyway.

src/xz/file_io.c

index 21cdecb08f911ca0adca54527e847167323e90d8..a54dfa2eda2b39b99c9967997c4175807874b8b9 100644 (file)
@@ -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;
                        }