[BusyBox-cvs] svn commit: trunk/busybox/coreutils

vapier at busybox.net vapier at busybox.net
Tue Jul 26 22:57:52 UTC 2005


Author: vapier
Date: 2005-07-26 16:57:51 -0600 (Tue, 26 Jul 2005)
New Revision: 10920

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

Modified:
   trunk/busybox/coreutils/tail.c


Changeset:
Modified: trunk/busybox/coreutils/tail.c
===================================================================
--- trunk/busybox/coreutils/tail.c	2005-07-26 22:53:35 UTC (rev 10919)
+++ trunk/busybox/coreutils/tail.c	2005-07-26 22:57:51 UTC (rev 10920)
@@ -81,17 +81,14 @@
 	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;




More information about the busybox-cvs mailing list