summaryrefslogtreecommitdiff
path: root/builtin-for-each-ref.c
diff options
context:
space:
mode:
authorPeter Hagervall <hager@cs.umu.se>2007-07-15 01:14:45 +0200
committerJunio C Hamano <gitster@pobox.com>2007-07-14 22:44:09 -0700
commitbaffc0e7708de1655665d150081e8880501736fe (patch)
tree267d9bfd87967c891fc25e8b5dcf1376ee8c816c /builtin-for-each-ref.c
parent46cf98baa5a1d74a9d00dc1092b29e4af93e8615 (diff)
downloadgit-baffc0e7708de1655665d150081e8880501736fe.tar.gz
Make every builtin-*.c file #include "builtin.h"
Make every builtin-*.c file #include "builtin.h". Also takes care of some declaration/definition mismatches. Signed-off-by: Peter Hagervall <hager@cs.umu.se> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-for-each-ref.c')
-rw-r--r--builtin-for-each-ref.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin-for-each-ref.c b/builtin-for-each-ref.c
index 2b218425aa..0afa1c5c41 100644
--- a/builtin-for-each-ref.c
+++ b/builtin-for-each-ref.c
@@ -1,3 +1,4 @@
+#include "builtin.h"
#include "cache.h"
#include "refs.h"
#include "object.h"
@@ -796,7 +797,7 @@ static struct ref_sort *default_sort(void)
return sort;
}
-int cmd_for_each_ref(int ac, const char **av, char *prefix)
+int cmd_for_each_ref(int ac, const char **av, const char *prefix)
{
int i, num_refs;
const char *format = NULL;