Skip to content

Commit

Permalink
run-command: use void to declare that functions take no parameters
Browse files Browse the repository at this point in the history
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 <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
René Scharfe authored and Junio C Hamano committed Nov 10, 2014
1 parent 80b581d commit 6066a7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run-command.c
Original file line number Diff line number Diff line change
Expand Up @@ -636,15 +636,15 @@ static struct {

static int git_atexit_installed;

static void git_atexit_dispatch()
static void git_atexit_dispatch(void)
{
size_t i;

for (i=git_atexit_hdlrs.nr ; i ; i--)
git_atexit_hdlrs.handlers[i-1]();
}

static void git_atexit_clear()
static void git_atexit_clear(void)
{
free(git_atexit_hdlrs.handlers);
memset(&git_atexit_hdlrs, 0, sizeof(git_atexit_hdlrs));
Expand Down

0 comments on commit 6066a7e

Please sign in to comment.