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>
This commit is contained in:
Rene Scharfe 2006-11-18 13:07:06 +01:00 committed by Junio C Hamano
parent f847c07b9a
commit a6e8a76770
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -844,7 +844,7 @@ unmap:
die("index file corrupt");
}
int discard_cache()
int discard_cache(void)
{
int ret;