git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sparse fix: non-ANSI function declaration
@ 2006-11-18 12:07 Rene Scharfe
  0 siblings, 0 replies; only message in thread
From: Rene Scharfe @ 2006-11-18 12:07 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Git Mailing List

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

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
---
 index-pack.c |    2 +-
 read-cache.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/index-pack.c b/index-pack.c
index 042aea8..8331d99 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 97c3867..0f5fb5b 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;
 
-- 
1.4.4

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2006-11-18 12:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-18 12:07 [PATCH] sparse fix: non-ANSI function declaration Rene Scharfe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).