[prev in list] [next in list] [prev in thread] [next in thread] 

List:       git
Subject:    [PATCH] unpack-objects: remove unused variable "eof"
From:       Johannes Schindelin <Johannes.Schindelin () gmx ! de>
Date:       2006-08-29 10:50:29
Message-ID: Pine.LNX.4.63.0608291250060.28360 () wbgn013 ! biozentrum ! uni-wuerzburg ! de
[Download RAW message or body]


Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
---
 builtin-unpack-objects.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/builtin-unpack-objects.c b/builtin-unpack-objects.c
index ca0ebc2..0c180b5 100644
--- a/builtin-unpack-objects.c
+++ b/builtin-unpack-objects.c
@@ -15,7 +15,7 @@ static const char unpack_usage[] = "git-
 
 /* We always read in 4kB chunks. */
 static unsigned char buffer[4096];
-static unsigned long offset, len, eof;
+static unsigned long offset, len;
 static SHA_CTX ctx;
 
 /*
@@ -26,8 +26,6 @@ static void * fill(int min)
 {
 	if (min <= len)
 		return buffer + offset;
-	if (eof)
-		die("unable to fill input");
 	if (min > sizeof(buffer))
 		die("cannot fill %d bytes", min);
 	if (offset) {
-- 
1.4.2.g0f6b-dirty

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic