OSDN Git Service

-Wold-style-definition fix
authorJunio C Hamano <gitster@pobox.com>
Wed, 13 Jun 2007 08:22:51 +0000 (01:22 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 13 Jun 2007 09:02:10 +0000 (02:02 -0700)
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.c
merge-recursive.c
sha1_file.c

index 58d3ed5..e323153 100644 (file)
--- a/config.c
+++ b/config.c
@@ -523,7 +523,7 @@ static int store_aux(const char* key, const char* value)
        return 0;
 }
 
-static int write_error()
+static int write_error(void)
 {
        fprintf(stderr, "Failed to write new configuration file\n");
 
index 4a82b74..c8539ec 100644 (file)
@@ -127,7 +127,7 @@ static void output(int v, const char *fmt, ...)
        va_end(args);
 }
 
-static void flush_output()
+static void flush_output(void)
 {
        struct output_buffer *b, *n;
        for (b = output_list; b; b = n) {
index 2b86086..eb7fc92 100644 (file)
@@ -413,7 +413,7 @@ static size_t peak_pack_mapped;
 static size_t pack_mapped;
 struct packed_git *packed_git;
 
-void pack_report()
+void pack_report(void)
 {
        fprintf(stderr,
                "pack_report: getpagesize()            = %10" SZ_FMT "\n"