diff options
author | Brandon Casey <casey@nrlssc.navy.mil> | 2008-08-20 19:34:30 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-08-20 19:59:06 -0700 |
commit | 4dc1db0bd1fc4eedea1ae8ceeee43cb0ea3322ca (patch) | |
tree | 5806a3b9e80a9097c244567fb7b6821f5dd419cd | |
parent | 9b99e641c11044dba661f574f9098d362a3f0ef8 (diff) | |
download | git-4dc1db0bd1fc4eedea1ae8ceeee43cb0ea3322ca.tar.gz |
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 <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | revision.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/revision.h b/revision.h index f64e8ce7ff..1b045669ae 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); |