From d92f1dc63f0582e7cf8dac54d50a2748119a1ce3 Mon Sep 17 00:00:00 2001 From: Peter Hagervall Date: Sun, 7 May 2006 16:50:47 +0200 Subject: [PATCH] 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 --- builtin-diff.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/builtin-diff.c b/builtin-diff.c index 636edbf2a..d3ac581f2 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; -- 2.26.2