diff options
author | Rene Scharfe <rene.scharfe@lsrfire.ath.cx> | 2006-11-18 13:07:06 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-11-18 11:40:00 -0800 |
commit | a6e8a7677055e092424db42c044774bc6dbd74f6 (patch) | |
tree | f891a5754045ea07e92897d2337f3bb2f50a6b79 | |
parent | f847c07b9ac82ff3d0da0efb3bed75bc17489a17 (diff) | |
download | git-a6e8a7677055e092424db42c044774bc6dbd74f6.tar.gz |
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>
-rw-r--r-- | index-pack.c | 2 | ||||
-rw-r--r-- | read-cache.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/index-pack.c b/index-pack.c index 042aea8842..8331d99a62 100644 --- a/index-pack.c +++ b/index-pack.c @@ -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) diff --git a/read-cache.c b/read-cache.c index 97c38670b4..0f5fb5bc33 100644 --- a/read-cache.c +++ b/read-cache.c @@ -844,7 +844,7 @@ unmap: die("index file corrupt"); } -int discard_cache() +int discard_cache(void) { int ret; |