Skip to content

Commit 7f98ebc

Browse files
committed
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 <[email protected]>
1 parent ee50af1 commit 7f98ebc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

commit.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ extern char *reencode_commit_message(const struct commit *commit,
7070
const char **encoding_p);
7171
extern void get_commit_format(const char *arg, struct rev_info *);
7272
extern void format_commit_message(const struct commit *commit,
73-
const void *format, struct strbuf *sb,
73+
const char *format, struct strbuf *sb,
7474
enum date_mode dmode);
7575
extern void pretty_print_commit(enum cmit_fmt fmt, const struct commit*,
7676
struct strbuf *,

pretty.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ static size_t format_commit_item(struct strbuf *sb, const char *placeholder,
740740
}
741741

742742
void format_commit_message(const struct commit *commit,
743-
const void *format, struct strbuf *sb,
743+
const char *format, struct strbuf *sb,
744744
enum date_mode dmode)
745745
{
746746
struct format_commit_context context;

0 commit comments

Comments
 (0)