Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
add an extra level of indirection to main()
[gitweb.git]
/
git.c
diff --git
a/git.c
b/git.c
index 968a8a464588f10c5c1564440e06d5e5afe8d37a..e2444046f5894fba768430c4d2e0aa66d6cd1fd5 100644
(file)
--- a/
git.c
+++ b/
git.c
@@
-630,9
+630,8
@@
static void restore_sigpipe_to_default(void)
signal(SIGPIPE, SIG_DFL);
}
-int
main(int argc, char **a
v)
+int
cmd_main(int argc, const char **arg
v)
{
- const char **argv = (const char **) av;
const char *cmd;
int done_help = 0;