Skip to content

Commit ec26b4d

Browse files
Rene ScharfeJunio C Hamano
authored andcommitted
Fix sparse warnings about non-ANSI function prototypes
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 5142db6 commit ec26b4d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

git.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ static void list_commands(const char *exec_path, const char *pattern)
172172
putchar('\n');
173173
}
174174

175-
static void list_common_cmds_help()
175+
static void list_common_cmds_help(void)
176176
{
177177
int i, longest = 0;
178178

http-push.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ static int refresh_lock(struct remote_lock *lock)
622622
return rc;
623623
}
624624

625-
static void check_locks()
625+
static void check_locks(void)
626626
{
627627
struct remote_lock *lock = remote->locks;
628628
time_t current_time = time(NULL);

0 commit comments

Comments
 (0)