From: Brandon Casey Date: Thu, 21 Aug 2008 00:34:30 +0000 (-0500) Subject: revision.h: make show_early_output an extern which is defined in revision.c X-Git-Tag: v1.6.0.1~13 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4dc1db0bd1fc4eedea1ae8ceeee43cb0ea3322ca;p=git.git revision.h: make show_early_output an extern which is defined in revision.c The variable show_early_output is defined in revision.c and should be declared extern in revision.h so that the linker does not complain about multiply defined variables. Signed-off-by: Brandon Casey Signed-off-by: Junio C Hamano --- diff --git a/revision.h b/revision.h index f64e8ce7f..1b045669a 100644 --- a/revision.h +++ b/revision.h @@ -119,7 +119,7 @@ struct rev_info { void read_revisions_from_stdin(struct rev_info *revs); typedef void (*show_early_output_fn_t)(struct rev_info *, struct commit_list *); -volatile show_early_output_fn_t show_early_output; +extern volatile show_early_output_fn_t show_early_output; extern void init_revisions(struct rev_info *revs, const char *prefix); extern int setup_revisions(int argc, const char **argv, struct rev_info *revs, const char *def);