mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-04-12 09:43:50 +00:00
Tidy.
This commit is contained in:
parent
0fe3213a47
commit
27d7c2a031
1 changed files with 1 additions and 4 deletions
5
stream.c
5
stream.c
|
|
@ -705,10 +705,7 @@ ssize_t read_1g(int fd, void *buf, i64 len)
|
|||
|
||||
total = 0;
|
||||
while (len > 0) {
|
||||
if (len > one_g)
|
||||
ret = one_g;
|
||||
else
|
||||
ret = len;
|
||||
ret = MIN(len, one_g);
|
||||
ret = read(fd, offset_buf, (size_t)ret);
|
||||
if (unlikely(ret <= 0))
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue