@matheusbsbs / matheus-bagliano / commits / a6e8a76770
Fork 0

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>

Rene Scharfe committed Nov 18, 2006 at 13:07 UTC a6e8a7677055e092424db42c044774bc6dbd74f6
2 files changed +2 -2
index-pack.c
+1 -1
@@ -90,7 +90,7 @@ static SHA_CTX input_ctx;
90 static int input_fd, output_fd, mmap_fd;
91
92 /* Discard current buffer used content. */
93 -static void flush()
93 +static void flush(void)
94 {
95 if (input_offset) {
96 if (output_fd >= 0)
read-cache.c
+1 -1
@@ -844,7 +844,7 @@ unmap:
844 die("index file corrupt");
845 }
846
847 -int discard_cache()
847 +int discard_cache(void)
848 {
849 int ret;
850