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>
Peter Hagervall committed
May 7, 2006 at 16:50 UTC
d92f1dc63f0582e7cf8dac54d50a2748119a1ce3
1 file changed
+1
-2
builtin-diff.c
+1
-2
@@ -84,8 +84,7 @@ static void stuff_change(struct diff_options *opt,
84
85
if (opt->reverse_diff) {
86
unsigned tmp;
87
- const
88
- const unsigned char *tmp_u;
87
+ const unsigned char *tmp_u;
88
const char *tmp_c;
89
tmp = old_mode; old_mode = new_mode; new_mode = tmp;
90
tmp_u = old_sha1; old_sha1 = new_sha1; new_sha1 = tmp_u;