From: Peter Hagervall Date: Sun, 7 May 2006 14:50:47 +0000 (+0200) Subject: Sparse fix for builtin-diff X-Git-Tag: v1.4.0-rc1~163 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=d92f1dc63f0582e7cf8dac54d50a2748119a1ce3;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/builtin-diff.c b/builtin-diff.c index 636edbf2..d3ac581f 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;