Browse Source

unpack-objects: remove unused variable "eof"

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
maint
Johannes Schindelin 19 years ago committed by Junio C Hamano
parent
commit
c9b0597d3d
  1. 4
      builtin-unpack-objects.c

4
builtin-unpack-objects.c

@ -15,7 +15,7 @@ static const char unpack_usage[] = "git-unpack-objects [-n] [-q] < pack-file"; @@ -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) @@ -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) {

Loading…
Cancel
Save