Fix sparse warnings about non-ANSI function prototypes
authorRene Scharfe <rene.scharfe@lsrfire.ath.cx>
Sun, 2 Apr 2006 11:13:10 +0000 (13:13 +0200)
committerJunio C Hamano <junkio@cox.net>
Sun, 2 Apr 2006 19:58:47 +0000 (12:58 -0700)
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git.c
http-push.c

diff --git a/git.c b/git.c
index 72039c6..b4a1ef2 100644 (file)
--- a/git.c
+++ b/git.c
@@ -172,7 +172,7 @@ static void list_commands(const char *exec_path, const char *pattern)
        putchar('\n');
 }
 
-static void list_common_cmds_help()
+static void list_common_cmds_help(void)
 {
        int i, longest = 0;
 
index 21c5289..ba7d9de 100644 (file)
@@ -622,7 +622,7 @@ static int refresh_lock(struct remote_lock *lock)
        return rc;
 }
 
-static void check_locks()
+static void check_locks(void)
 {
        struct remote_lock *lock = remote->locks;
        time_t current_time = time(NULL);