]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git.c
add an extra level of indirection to main()
[thirdparty/git.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 **av)
+int cmd_main(int argc, const char **argv)
 {
-       const char **argv = (const char **) av;
        const char *cmd;
        int done_help = 0;