summaryrefslogtreecommitdiff
path: root/builtin-diff.c
diff options
context:
space:
mode:
authorPeter Hagervall <hager@cs.umu.se>2006-05-07 14:50:47 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-05-07 22:36:10 (GMT)
commitd92f1dc63f0582e7cf8dac54d50a2748119a1ce3 (patch)
treed15033df5170517251a0a6ea55aa11da88d58294 /builtin-diff.c
parentbe65e7d9fbd3ae6fc097cedade2afe39805fcf4e (diff)
downloadgit-d92f1dc63f0582e7cf8dac54d50a2748119a1ce3.zip
git-d92f1dc63f0582e7cf8dac54d50a2748119a1ce3.tar.gz
git-d92f1dc63f0582e7cf8dac54d50a2748119a1ce3.tar.bz2
Sparse fix for builtin-diff
You gotta love sparse: builtin-diff.c:88:4: error: Just how const do you want this type to be? Signed-off-by: Peter Hagervall <hager@cs.umu.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-diff.c')
-rw-r--r--builtin-diff.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin-diff.c b/builtin-diff.c
index 636edbf..d3ac581 100644
--- a/builtin-diff.c
+++ b/builtin-diff.c
@@ -84,8 +84,7 @@ static void stuff_change(struct diff_options *opt,
if (opt->reverse_diff) {
unsigned tmp;
- const
- const unsigned char *tmp_u;
+ const unsigned char *tmp_u;
const char *tmp_c;
tmp = old_mode; old_mode = new_mode; new_mode = tmp;
tmp_u = old_sha1; old_sha1 = new_sha1; new_sha1 = tmp_u;