aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2006-08-29 12:50:29 +0200
committerJunio C Hamano <junkio@cox.net>2006-08-29 14:26:04 -0700
commitc9b0597d3d3168e29f68b0e82fa755ee165f6b72 (patch)
tree26aef6df701d6b71e6d116f1e160de63adf95bac
parent071fa89e25855a746728b835359eb263c7c7ee7f (diff)
downloadgit-c9b0597d3d3168e29f68b0e82fa755ee165f6b72.tar.gz
git-c9b0597d3d3168e29f68b0e82fa755ee165f6b72.tar.xz
unpack-objects: remove unused variable "eof"
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
-rw-r--r--builtin-unpack-objects.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/builtin-unpack-objects.c b/builtin-unpack-objects.c
index ca0ebc258..0c180b53a 100644
--- a/builtin-unpack-objects.c
+++ b/builtin-unpack-objects.c
@@ -15,7 +15,7 @@ static const char unpack_usage[] = "git-unpack-objects [-n] [-q] < pack-file";
/* 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) {