From: Rene Scharfe Date: Sun, 2 Apr 2006 11:13:10 +0000 (+0200) Subject: Fix sparse warnings about non-ANSI function prototypes X-Git-Tag: v1.3.0-rc2~11 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=ec26b4d6b004b6529c79e995a543945076c683aa;p=git.git Fix sparse warnings about non-ANSI function prototypes Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- diff --git a/git.c b/git.c index 72039c69..b4a1ef2b 100644 --- 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; diff --git a/http-push.c b/http-push.c index 21c5289c..ba7d9de2 100644 --- a/http-push.c +++ b/http-push.c @@ -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);