Skip to content

Commit

Permalink
unpack-objects: remove unused variable "eof"
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Johannes Schindelin authored and Junio C Hamano committed Aug 29, 2006
1 parent 071fa89 commit c9b0597
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions builtin-unpack-objects.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/*
Expand All @@ -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) {
Expand Down

0 comments on commit c9b0597

Please sign in to comment.