sparse fix: non-ANSI function declaration
authorRene Scharfe <rene.scharfe@lsrfire.ath.cx>
Sat, 18 Nov 2006 12:07:06 +0000 (13:07 +0100)
committerJunio C Hamano <junkio@cox.net>
Sat, 18 Nov 2006 19:40:00 +0000 (11:40 -0800)
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>
index-pack.c
read-cache.c
index 042aea8842b531254e9a2d0ec67cbaeb40990575..8331d99a62a457cb341a834792aedf5de9c5625f 100644 (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)
index 97c38670b45d852b2f07f3d3addb2aaf6dbd8697..0f5fb5bc3350f7def1eb14e792507098118d1e66 100644 (file)
@@ -844,7 +844,7 @@ int read_cache_from(const char *path)
        die("index file corrupt");
 }
 
-int discard_cache()
+int discard_cache(void)
 {
        int ret;