@matheusbsbs / matheus-bagliano / commits / 7f98ebc8fd
Fork 0

format_commit_message(): fix function signature

The format template string was declared as "const void *" for some unknown reason, even though it obviously is meant to be passed a string. Make it "const char *". Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Oct 15, 2009 at 22:59 UTC 7f98ebc8fd34107c6234cbad7b776054810b6fe1
2 files changed +2 -2
commit.h
+1 -1
@@ -70,7 +70,7 @@ extern char *reencode_commit_message(const struct commit *commit,
70 const char **encoding_p);
71 extern void get_commit_format(const char *arg, struct rev_info *);
72 extern void format_commit_message(const struct commit *commit,
73 - const void *format, struct strbuf *sb,
73 + const char *format, struct strbuf *sb,
74 enum date_mode dmode);
75 extern void pretty_print_commit(enum cmit_fmt fmt, const struct commit*,
76 struct strbuf *,
pretty.c
+1 -1
@@ -740,7 +740,7 @@ static size_t format_commit_item(struct strbuf *sb, const char *placeholder,
740 }
741
742 void format_commit_message(const struct commit *commit,
743 - const void *format, struct strbuf *sb,
743 + const char *format, struct strbuf *sb,
744 enum date_mode dmode)
745 {
746 struct format_commit_context context;