← Commit list

dbc049fda

Mike Frysinger
Mike Frysinger
2005-07-26
FAILED Duration: 19s

Subject

remove unused variable ret as reported by apgo in Bug 350 and touchup syntax along the way

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

coreutils/tail.c+5 -8
@@ -81,17 +81,14 @@ static ssize_t tail_read(int fd, char *buf, size_t count)
ssize_t r;
off_t current,end;
struct stat sbuf;
- int ret;
- end = current = lseek (fd, 0, SEEK_CUR);
- if (!fstat(fd, &sbuf)){
- end = sbuf.st_size;
- }
- if ( end < current) {
+ end = current = lseek(fd, 0, SEEK_CUR);
+ if (!fstat(fd, &sbuf))
+ end = sbuf.st_size;
+ if (end < current)
lseek(fd, 0, SEEK_SET);
- } else {
+ else
lseek(fd, current, SEEK_SET);
- }
if ((r = safe_read(fd, buf, count)) < 0) {
bb_perror_msg("read");
status = EXIT_FAILURE;