From 18bda10f02872d6e0026d7187652ab3ab335cea1 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 14 Nov 2014 06:15:07 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/common.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/common.c b/src/common.c index 5341d3c..a30c4a5 100644 --- a/src/common.c +++ b/src/common.c @@ -263,16 +263,9 @@ static int check_checksums(const char* restrict filename, const libkeccak_spec_t } got = read(fd, buf + ptr, blksize); - if (got < 0) - { - if (errno == EINTR) - continue; - goto pfail; - } - else if (got == 0) - break; - else - ptr += (size_t)got; + if (got < 0) goto pfail; + else if (got == 0) break; + else ptr += (size_t)got; } size = ptr; close(fd), fd = -1; -- cgit v1.2.3-70-g09d2