Browse Source

sparse fix: non-ANSI function declaration

The declaration of discard_cache() in cache.h already has its "void".

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <junkio@cox.net>
maint
Rene Scharfe 18 years ago committed by Junio C Hamano
parent
commit
a6e8a76770
  1. 2
      index-pack.c
  2. 2
      read-cache.c

2
index-pack.c

@ -90,7 +90,7 @@ static SHA_CTX input_ctx; @@ -90,7 +90,7 @@ static SHA_CTX input_ctx;
static int input_fd, output_fd, mmap_fd;

/* Discard current buffer used content. */
static void flush()
static void flush(void)
{
if (input_offset) {
if (output_fd >= 0)

2
read-cache.c

@ -844,7 +844,7 @@ unmap: @@ -844,7 +844,7 @@ unmap:
die("index file corrupt");
}

int discard_cache()
int discard_cache(void)
{
int ret;


Loading…
Cancel
Save