From: Matthias Kestenholz Date: Wed, 2 Aug 2006 21:52:00 +0000 (+0200) Subject: use declarations from builtin.h for builtin commands X-Git-Tag: v1.4.2-rc3~10 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=25f38f064f7f9ccde337eafcf575e4a5a1079346;p=git.git use declarations from builtin.h for builtin commands Signed-off-by: Matthias Kestenholz Signed-off-by: Junio C Hamano --- diff --git a/builtin-fmt-merge-msg.c b/builtin-fmt-merge-msg.c index c84224ee8..485ede7ca 100644 --- a/builtin-fmt-merge-msg.c +++ b/builtin-fmt-merge-msg.c @@ -1,3 +1,4 @@ +#include "builtin.h" #include "cache.h" #include "commit.h" #include "diff.h" @@ -242,7 +243,7 @@ static void shortlog(const char *name, unsigned char *sha1, free_list(&subjects); } -int cmd_fmt_merge_msg(int argc, char **argv, const char *prefix) +int cmd_fmt_merge_msg(int argc, const char **argv, const char *prefix) { int limit = 20, i = 0; char line[1024]; diff --git a/builtin-prune-packed.c b/builtin-prune-packed.c index d0ff336c1..d3dd94d9e 100644 --- a/builtin-prune-packed.c +++ b/builtin-prune-packed.c @@ -1,3 +1,4 @@ +#include "builtin.h" #include "cache.h" static const char prune_packed_usage[] = @@ -54,7 +55,7 @@ static void prune_packed_objects(void) } } -int cmd_prune_packed(int argc, char **argv, const char *prefix) +int cmd_prune_packed(int argc, const char **argv, const char *prefix) { int i;