Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
run-command: use void to declare that functions take no parameters
author
René Scharfe
<l.s.r@web.de>
Mon, 10 Nov 2014 21:17:00 +0000
(22:17 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 10 Nov 2014 22:43:19 +0000
(14:43 -0800)
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>
run-command.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
80b581d
)
diff --git
a/run-command.c
b/run-command.c
index 79a0a763ec61c0195711606b771f717dbbaab7c4..a47699966c59f708683e439bcd3296d5fce8acf5 100644
(file)
--- a/
run-command.c
+++ b/
run-command.c
@@
-636,7
+636,7
@@
static struct {
static int git_atexit_installed;
-static void git_atexit_dispatch()
+static void git_atexit_dispatch(
void
)
{
size_t i;
@@
-644,7
+644,7
@@
static void git_atexit_dispatch()
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));