Skip to content

Commit 6066a7e

Browse files
rscharfegitster
authored andcommitted
run-command: use void to declare that functions take no parameters
Explicitly declare that git_atexit_dispatch() and git_atexit_clear() take no parameters instead of leaving their parameter list empty and thus unspecified. Signed-off-by: Rene Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 80b581d commit 6066a7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

run-command.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,15 +636,15 @@ static struct {
636636

637637
static int git_atexit_installed;
638638

639-
static void git_atexit_dispatch()
639+
static void git_atexit_dispatch(void)
640640
{
641641
size_t i;
642642

643643
for (i=git_atexit_hdlrs.nr ; i ; i--)
644644
git_atexit_hdlrs.handlers[i-1]();
645645
}
646646

647-
static void git_atexit_clear()
647+
static void git_atexit_clear(void)
648648
{
649649
free(git_atexit_hdlrs.handlers);
650650
memset(&git_atexit_hdlrs, 0, sizeof(git_atexit_hdlrs));

0 commit comments

Comments
 (0)